This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
alias problem with gold
- From: Andi Kleen <andi at firstfloor dot org>
- To: iant at google dot com
- Cc: binutils at sourceware dot org
- Date: Sat, 26 Apr 2008 21:45:55 +0200
- Subject: alias problem with gold
I started looking at the x86-64 kernel problem (crashes very early
at boot) when linked with gold.
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.
BTW the maps are difficult to compare because the types are often different.
Often 'T' in BFD is 'A' in gold. Is that intended?
-Andi