[Gold] problem building linux kernel
Doug Kwan (關振德)
dougkwan@google.com
Thu Nov 18 18:26:00 GMT 2010
On Thu, Nov 18, 2010 at 7:38 AM, Ian Lance Taylor <iant@google.com> wrote:
> Doug, I don't know what is going on, but there is clearly a 32-x-64
> problem somewhere. All these values are sign extended from 32 bits to
> 64 bits. Try building gold with -m32.
You're spot on. Building gold with -m32 does the trick.
Elf file type is EXEC (Executable file)
Entry point 0x1000000
There are 6 program headers, starting at offset 64
Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flg Align
LOAD 0x001000 0xffffffff81000000 0x0000000001000000
0x5bb000 0x5bb000 R E 0x5ffb20100
LOAD 0x5bc000 0xffffffff815bb000 0x00000000015bb000
0x0645a8 0x0645a8 RWE 0x5ffb20100
LOAD 0x621000 0xffffffffff600000 0x0000000001620000
0x000888 0x000888 R E 0x5ffb20100
LOAD 0x622000 0x0000000000000000 0x0000000001621000
0x011f80 0x011f80 RW 0x5ffb20100
LOAD 0x634000 0xffffffff81633000 0x0000000001633000
0x0c3000 0x0c3000 RWE 0x5ffb20100
NOTE 0x462430 0xffffffff81461430 0x0000000001461430
0x000040 0x000040 0x4
I will look deeper and see what's wrong.
-Doug
More information about the Binutils
mailing list