bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/10744] Linker failed to build ia64 kernel


From: hjl dot tools at gmail dot com
Subject: [Bug ld/10744] Linker failed to build ia64 kernel
Date: 7 Oct 2009 18:18:29 -0000

------- Additional Comments From hjl dot tools at gmail dot com  2009-10-07 
18:18 -------
Created an attachment (id=4260)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4260&action=view)
A testcase for Linux/ia64

Working linker:

address@hidden kernel]$ ld -o gate-syms.o -T gate.lds  gate.o
address@hidden kernel]$ ld -shared -s -soname=linux-gate.so.1 -o gate.so  -T
gate.lds gate.o
address@hidden kernel]$ readelf -l gate.so

Elf file type is DYN (Shared object file)
Entry point 0xa000000000010640
There are 4 program headers, starting at offset 64

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  LOAD           0x0000000000000000 0xa000000000000000 0xa000000000000000
                 0x0000000000000610 0x0000000000000610  R      10000
  LOAD           0x0000000000000000 0xa000000000010000 0xa000000000010000
                 0x00000000000009b0 0x00000000000009b0    E    10000
  DYNAMIC        0x0000000000000268 0xa000000000000268 0xa000000000000268
                 0x0000000000000140 0x0000000000000140  R      8
  IA_64_UNWIND   0x00000000000005c8 0xa0000000000005c8 0xa0000000000005c8
                 0x0000000000000048 0x0000000000000048  R      8

 Section to Segment mapping:
  Segment Sections...
   00     .hash .dynsym .dynstr .gnu.version .gnu.version_d .dynamic
.data.patch .IA_64.unwind_info .IA_64.unwind 
   01     .text 
   02     .dynamic 
   03     .IA_64.unwind 
address@hidden kernel]$ 

Bad linker:

address@hidden kernel]$ ./ld -o gate-syms.o -T gate.lds  
gate.o./ld:gate.lds:898:
PHDRS and FILEHDR are only permitted for the first PT_LOAD segment
address@hidden kernel]$ ./ld -shared -s -soname=linux-gate.so.1 -o gate.so  -T
gate.lds gate.o 
./ld:gate.lds:898: PHDRS and FILEHDR are only permitted for the first PT_LOAD
segment
address@hidden kernel]$ 

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10744

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]