------- Additional Comments From hjl at lucon dot org 2005-10-12 01:02 ------- Created an attachment (id=697) --> (http://sourceware.org/bugzilla/attachment.cgi?id=697&action=view) A testcase
[EMAIL PROTECTED] orphan-1]$ make as -o foo.o foo.s ld -o foo -T ld.x foo.o readelf -Sl foo There are 9 section headers, starting at offset 0x100058: Section Headers: [Nr] Name Type Address Offset Size EntSize Flags Link Info Align [ 0] NULL 0000000000000000 00000000 0000000000000000 0000000000000000 0 0 0 [ 1] .text PROGBITS 0000000000000000 00100000 0000000000000004 0000000000000000 AX 0 0 4 [ 2] .data PROGBITS 0000000000000004 00100004 0000000000000004 0000000000000000 WA 0 0 4 [ 3] .note NOTE 0000000000000008 00100008 0000000000000004 0000000000000000 A 0 0 1 [ 4] .notbad PROGBITS 000000000000000c 0010000c 0000000000000004 0000000000000000 A 0 0 1 [ 5] .note.bar NOTE 0000000000000010 00100010 0000000000000004 0000000000000000 A 0 0 1 [ 6] .shstrtab STRTAB 0000000000000000 00100014 000000000000003f 0000000000000000 0 0 1 [ 7] .symtab SYMTAB 0000000000000000 00100298 00000000000000d8 0000000000000018 8 9 8 [ 8] .strtab STRTAB 0000000000000000 00100370 0000000000000001 0000000000000000 0 0 1 Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings) I (info), L (link order), G (group), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific) Elf file type is EXEC (Executable file) Entry point 0x0 There are 3 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flags Align LOAD 0x0000000000100000 0x0000000000000000 0x0000000000000000 0x0000000000000014 0x0000000000000014 RWE 100000 NOTE 0x0000000000100008 0x0000000000000008 0x0000000000000008 0x0000000000000004 0x0000000000000004 R 1 NOTE 0x0000000000100010 0x0000000000000010 0x0000000000000010 0x0000000000000004 0x0000000000000004 R 1 Section to Segment mapping: Segment Sections... 00 .text .data .note .notbad .note.bar 01 .note 02 .note.bar [EMAIL PROTECTED] orphan-1]$ There are [ 3] .note NOTE 0000000000000008 00100008 0000000000000004 0000000000000000 A 0 0 1 [ 4] .notbad PROGBITS 000000000000000c 0010000c 0000000000000004 0000000000000000 A 0 0 1 [ 5] .note.bar NOTE 0000000000000010 00100010 0000000000000004 0000000000000000 A 0 0 1 The .notbad section is placed between 2 NOTE sections. -- http://sourceware.org/bugzilla/show_bug.cgi?id=1467 ------- 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 bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils