lkml.org 
[lkml]   [2005]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] i386: vmlinux.lds.S Distinguish absolute symbols
 >
> > I recall that when Kai Germaschewski long time ago started the
> > unification of the vmlinux.lds files some people had boot problems
> > exactly because the label was defined inside the section and therefore
> > ld caused it to have another value as if it was placed outside the
> > section.
>
> I remember seeing something like that. I don't know if those problems
> apply to a modern ld, but it is certainly worth looking into.
I was googling a bit with no luck.
But apperantly looking at include/asm-generic/vmlinux.lds.h
I'm utterly wrong. It was the other way around that caused problems.

Placing the labels outside {} sometimes gave an unaligned start address,
whereas placing the label inside {} gave the correct address.
At his also makes sense. If ld decide to align a section then it will do
so after a label defined outside the section.

Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-07-31 10:32    [W:0.444 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site