This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: alias problem with gold
- From: Ian Lance Taylor <iant at google dot com>
- To: Andi Kleen <andi at firstfloor dot org>
- Cc: binutils at sourceware dot org
- Date: Mon, 28 Apr 2008 17:28:54 -0700
- Subject: Re: alias problem with gold
- References: <20080426194555.GA32263@basil.nowhere.org>
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