alias problem with gold
Ian Lance Taylor
iant@google.com
Tue Apr 29 05:17:00 GMT 2008
Andi Kleen <andi@firstfloor.org> writes:
> I started looking at the x86-64 kernel problem (crashes very early
> at boot) when linked with gold.
Thanks for looking into this.
> First thing I notice is that symbol aliases don't seem to work.
>
> The linker script has a alias for a symbol:
>
> jiffies_64 = jiffies;
>
> on the BFD linker it ends up as a true alias:
>
> ffffffff80795880 A jiffies
> ffffffff80795880 A jiffies_64
>
> but on gold the alias is 0
>
> 0000000000000000 A jiffies_64
> ...
> ffffffff8079b880 D jiffies
>
> That's not the reason it crashes though, but I bet it would have crashed
> later due to this later too.
Hmmm, symbol aliases do work, and they are even in the testsuite.
Perhaps the problem is a symbol alias for a symbol defined in a linker
script. I'll check that.
> BTW the maps are difficult to compare because the types are often different.
> Often 'T' in BFD is 'A' in gold. Is that intended?
Can you give an example of a symbol? Is this a symbol defined in the
linker script or in a .o file?
Ian
More information about the Binutils
mailing list