This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
-- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
.globl _start .text _start: .4byte 0x12345678 .data .4byte 0x9abcdef0
ENTRY(_start) MEMORY { mem_one : org = 1M, len = 1M mem_two : org = 2M, len = 1M } PHDRS { phdr_one PT_LOAD FLAGS ((4<<20) | 6); phdr_two PT_LOAD FILEHDR PHDRS FLAGS (5); } SECTIONS { . = 192M + 64K; .text . : AT (1M + 64K) { *(.text) } :phdr_two . = 2M; .data . : { *(.data) } AT>mem_two :phdr_one }
ENTRY(_start) MEMORY { mem_one : org = 1M, len = 1M mem_two : org = 2M, len = 1M } PHDRS { phdr_one PT_LOAD FILEHDR PHDRS FLAGS (5); phdr_two PT_LOAD FLAGS ((4<<20) | 6); } SECTIONS { . = 192M + 64K; .text . : AT (1M + 64K) { *(.text) } :phdr_one . = 2M; .data . : { *(.data) } AT>mem_two :phdr_two }
Attachment:
bad
Description: Binary data
Attachment:
good
Description: Binary data
There are 6 section headers, starting at offset 0x2002c: Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .text PROGBITS 0c010000 020000 000004 00 AX 0 0 1 [ 2] .data PROGBITS 00200000 010000 000004 00 WA 0 0 1 [ 3] .shstrtab STRTAB 00000000 020004 000027 00 0 0 1 [ 4] .symtab SYMTAB 00000000 02011c 000040 10 5 3 4 [ 5] .strtab STRTAB 00000000 02015c 000008 00 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 0xc010000 There are 2 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x010000 0x00200000 0x00200000 0x00004 0x00004 RW 0x10000 LOAD 0x000000 0x0bff0000 0x000f0000 0x20004 0x20004 R E 0x10000 Section to Segment mapping: Segment Sections... 00 .data 01 .text
There are 6 section headers, starting at offset 0x2002c: Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .text PROGBITS 0c010000 010000 000004 00 AX 0 0 1 [ 2] .data PROGBITS 00200000 020000 000004 00 WA 0 0 1 [ 3] .shstrtab STRTAB 00000000 020004 000027 00 0 0 1 [ 4] .symtab SYMTAB 00000000 02011c 000040 10 5 3 4 [ 5] .strtab STRTAB 00000000 02015c 000008 00 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 0xc010000 There are 2 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x000000 0x0c000000 0x00100000 0x10004 0x10004 R E 0x10000 LOAD 0x020000 0x00200000 0x00200000 0x00004 0x00004 RW 0x10000 Section to Segment mapping: Segment Sections... 00 .text 01 .data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |