------- 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:
[...@gnu-14 kernel]$ ld -o gate-syms.o -T gate.lds gate.o
[...@gnu-14 kernel]$ ld -shared -s -soname=linux-gate.so.1 -o gate.so -T
gate.lds gate.o
[...@gnu-14 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
[...@gnu-14 kernel]$
Bad linker:
[...@gnu-14 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
[...@gnu-14 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
[...@gnu-14 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.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils