Files
rosetta/doc/simple.elf.txt

88 lines
4.3 KiB
Plaintext
Raw Permalink Normal View History

2024-11-02 15:09:10 +00:00
ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x4000d1
Start of program headers: 64 (bytes into file)
Start of section headers: 66560 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 2
Size of section headers: 64 (bytes)
Number of section headers: 10
Section header string table index: 9
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 00000000004000b0 000000b0
00000000000000c8 0000000000000000 AX 0 0 1
[ 2] .rodata PROGBITS 0000000000400180 00000180
0000000000010000 0000000000000000 A 0 0 32
[ 3] .eh_frame PROGBITS 0000000000410180 00010180
000000000000009c 0000000000000000 A 0 0 8
[ 4] .data PROGBITS 000000000041121c 0001021c
0000000000000004 0000000000000000 WA 0 0 4
[ 5] .bss NOBITS 0000000000411220 00010220
0000000000010020 0000000000000000 WA 0 0 32
[ 6] .comment PROGBITS 0000000000000000 00010220
0000000000000012 0000000000000001 MS 0 0 1
[ 7] .symtab SYMTAB 0000000000000000 00010238
0000000000000138 0000000000000018 8 2 8
[ 8] .strtab STRTAB 0000000000000000 00010370
0000000000000043 0000000000000000 0 0 1
[ 9] .shstrtab STRTAB 0000000000000000 000103b3
0000000000000047 0000000000000000 0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
L (link order), O (extra OS processing required), G (group), T (TLS),
C (compressed), x (unknown), o (OS specific), E (exclude),
D (mbind), l (large), p (processor specific)
There are no section groups in this file.
Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flags Align
LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000
0x000000000001021c 0x000000000001021c R E 0x1000
LOAD 0x000000000001021c 0x000000000041121c 0x000000000041121c
0x0000000000000004 0x0000000000010024 RW 0x1000
Section to Segment mapping:
Segment Sections...
00 .text .rodata .eh_frame
01 .data .bss
There is no dynamic section in this file.
There are no relocations in this file.
No processor specific unwind information to decode
Symbol table '.symtab' contains 13 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000000 0 FILE LOCAL DEFAULT ABS simple.c
2: 00000000004000bb 11 FUNC GLOBAL DEFAULT 1 b
3: 0000000000411220 4 OBJECT GLOBAL DEFAULT 5 result_a
4: 000000000041121c 4 OBJECT GLOBAL DEFAULT 4 result_b
5: 0000000000400180 65536 OBJECT GLOBAL DEFAULT 2 buffer2
6: 00000000004000d1 167 FUNC GLOBAL DEFAULT 1 _start
7: 0000000000411240 65536 OBJECT GLOBAL DEFAULT 5 buffer
8: 00000000004000c6 11 FUNC GLOBAL DEFAULT 1 c
9: 0000000000411220 0 NOTYPE GLOBAL DEFAULT 5 __bss_start
10: 0000000000411220 0 NOTYPE GLOBAL DEFAULT 4 _edata
11: 0000000000421240 0 NOTYPE GLOBAL DEFAULT 5 _end
12: 00000000004000b0 11 FUNC GLOBAL DEFAULT 1 a
No version information found in this file.