[...@gnu-6 929]$ cat c.s .section ".jcr","a" .long 0 .text .globl _start _start: .byte 0 [...@gnu-6 929]$ ld c.o [...@gnu-6 929]$ ls -l a.out -rwxrwxr-x 1 hjl hjl 2097904 2009-01-05 16:36 a.out [...@gnu-6 929]$ readelf -Sl a.out There are 6 section headers, starting at offset 0x2000a8:
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 0000000000400078 00000078 0000000000000001 0000000000000000 AX 0 0 4 [ 2] .jcr PROGBITS 0000000000600079 00200079 0000000000000004 0000000000000000 A 0 0 1 [ 3] .shstrtab STRTAB 0000000000000000 0020007d 0000000000000026 0000000000000000 0 0 1 [ 4] .symtab SYMTAB 0000000000000000 00200228 00000000000000a8 0000000000000018 5 3 8 [ 5] .strtab STRTAB 0000000000000000 002002d0 0000000000000020 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 0x400078 There are 1 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flags Align LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000 0x000000000020007d 0x000000000020007d R E 200000 Section to Segment mapping: Segment Sections... 00 .text .jcr [...@gnu-6 929]$ -- Summary: Big gap between .text and .jcr Product: binutils Version: 2.20 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: hjl dot tools at gmail dot com CC: bug-binutils at gnu dot org GCC target triplet: x86_64-unknown-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=9713 ------- 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