This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: e_phnum > 1
"Andreas Schwab" <schwab@suse.de> wrote:
GNU Binutils produces ELF files with *two* segments:
...
Section to Segment mapping:
Segment Sections...
00 .reginfo
01 .text .reginfo .data
What kind of segments are these?
$mips-linux-uclibc-readelf -a test.elf
ELF Header:
Magic: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, big endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: MIPS R3000
Version: 0x1
Entry point address: 0x80008000
Start of program headers: 52 (bytes into file)
Start of section headers: 272 (bytes into file)
Flags: 0x20001101, noreorder, 32bitmode, o32,
mips3
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 2
Size of section headers: 40 (bytes)
Number of section headers: 5
Section header string table index: 4
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 80008000 000080 000040 00 WAX 0
0 16
[ 2] .reginfo MIPS_REGINFO 80008040 0000c0 000018 18 A 0
0 4
[ 3] .data PROGBITS 80008060 0000e0 000010 00 WA 0
0 16
[ 4] .shstrtab STRTAB 00000000 0000f0 000020 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)
There are no section groups in this file.
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
REGINFO 0x0000c0 0x80008040 0x80008040 0x00018 0x00018 R 0x4
LOAD 0x000080 0x80008000 0x80008000 0x00070 0x00070 RWE 0x10
Section to Segment mapping:
Segment Sections...
00 .reginfo
01 .text .reginfo .data
There is no dynamic section in this file.
There are no relocations in this file.
There are no unwind sections in this file.
No version information found in this file.
--
-=AV=-