-
Notifications
You must be signed in to change notification settings - Fork 0
/
elf.elf
124 lines (113 loc) · 6.98 KB
/
elf.elf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
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: REL (Relocatable file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x0
Start of program headers: 0 (bytes into file)
Start of section headers: 1560 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 0 (bytes)
Number of program headers: 0
Size of section headers: 64 (bytes)
Number of section headers: 21
Section header string table index: 20
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 00000040
0000000000000008 0000000000000000 AX 0 0 16
[ 2] .data PROGBITS 0000000000000000 00000048
0000000000000000 0000000000000000 WA 0 0 1
[ 3] .bss NOBITS 0000000000000000 00000048
0000000000000000 0000000000000000 WA 0 0 1
[ 4] .debug_info PROGBITS 0000000000000000 00000048
000000000000006d 0000000000000000 0 0 1
[ 5] .rela.debug_info RELA 0000000000000000 000003e8
00000000000000a8 0000000000000018 I 18 4 8
[ 6] .debug_abbrev PROGBITS 0000000000000000 000000b5
000000000000004f 0000000000000000 0 0 1
[ 7] .debug_aranges PROGBITS 0000000000000000 00000104
0000000000000030 0000000000000000 0 0 1
[ 8] .rela.debug_[...] RELA 0000000000000000 00000490
0000000000000030 0000000000000018 I 18 7 8
[ 9] .debug_line PROGBITS 0000000000000000 00000134
000000000000005a 0000000000000000 0 0 1
[10] .rela.debug_line RELA 0000000000000000 000004c0
0000000000000078 0000000000000018 I 18 9 8
[11] .debug_str PROGBITS 0000000000000000 0000018e
0000000000000092 0000000000000001 MS 0 0 1
[12] .debug_line_str PROGBITS 0000000000000000 00000220
000000000000005a 0000000000000001 MS 0 0 1
[13] .comment PROGBITS 0000000000000000 0000027a
000000000000002c 0000000000000001 MS 0 0 1
[14] .note.GNU-stack PROGBITS 0000000000000000 000002a6
0000000000000000 0000000000000000 0 0 1
[15] .note.gnu.pr[...] NOTE 0000000000000000 000002a8
0000000000000020 0000000000000000 A 0 0 8
[16] .eh_frame PROGBITS 0000000000000000 000002c8
0000000000000030 0000000000000000 A 0 0 8
[17] .rela.eh_frame RELA 0000000000000000 00000538
0000000000000018 0000000000000018 I 18 16 8
[18] .symtab SYMTAB 0000000000000000 000002f8
00000000000000d8 0000000000000018 19 8 8
[19] .strtab STRTAB 0000000000000000 000003d0
0000000000000013 0000000000000000 0 0 1
[20] .shstrtab STRTAB 0000000000000000 00000550
00000000000000c6 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.
There are no program headers in this file.
There is no dynamic section in this file.
Relocation section '.rela.debug_info' at offset 0x3e8 contains 7 entries:
Offset Info Type Sym. Value Sym. Name + Addend
000000000008 00040000000a R_X86_64_32 0000000000000000 .debug_abbrev + 0
00000000000d 00060000000a R_X86_64_32 0000000000000000 .debug_str + 0
000000000012 00070000000a R_X86_64_32 0000000000000000 .debug_line_str + 10
000000000016 00070000000a R_X86_64_32 0000000000000000 .debug_line_str + 0
00000000001a 000200000001 R_X86_64_64 0000000000000000 .text + 0
00000000002a 00050000000a R_X86_64_32 0000000000000000 .debug_line + 0
00000000003a 000200000001 R_X86_64_64 0000000000000000 .text + 0
Relocation section '.rela.debug_aranges' at offset 0x490 contains 2 entries:
Offset Info Type Sym. Value Sym. Name + Addend
000000000006 00030000000a R_X86_64_32 0000000000000000 .debug_info + 0
000000000010 000200000001 R_X86_64_64 0000000000000000 .text + 0
Relocation section '.rela.debug_line' at offset 0x4c0 contains 5 entries:
Offset Info Type Sym. Value Sym. Name + Addend
000000000022 00070000000a R_X86_64_32 0000000000000000 .debug_line_str + 26
000000000026 00070000000a R_X86_64_32 0000000000000000 .debug_line_str + 36
000000000030 00070000000a R_X86_64_32 0000000000000000 .debug_line_str + 3e
000000000035 00070000000a R_X86_64_32 0000000000000000 .debug_line_str + 4c
00000000003f 000200000001 R_X86_64_64 0000000000000000 .text + 0
Relocation section '.rela.eh_frame' at offset 0x538 contains 1 entry:
Offset Info Type Sym. Value Sym. Name + Addend
000000000020 000200000002 R_X86_64_PC32 0000000000000000 .text + 0
No processor specific unwind information to decode
Symbol table '.symtab' contains 9 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000000 0 FILE LOCAL DEFAULT ABS elf_example.c
2: 0000000000000000 0 SECTION LOCAL DEFAULT 1 .text
3: 0000000000000000 0 SECTION LOCAL DEFAULT 4 .debug_info
4: 0000000000000000 0 SECTION LOCAL DEFAULT 6 .debug_abbrev
5: 0000000000000000 0 SECTION LOCAL DEFAULT 9 .debug_line
6: 0000000000000000 0 SECTION LOCAL DEFAULT 11 .debug_str
7: 0000000000000000 0 SECTION LOCAL DEFAULT 12 .debug_line_str
8: 0000000000000000 8 FUNC GLOBAL DEFAULT 1 add
No version information found in this file.
Displaying notes found in: .note.gnu.property
Owner Data size Description
GNU 0x00000010 NT_GNU_PROPERTY_TYPE_0
Properties: x86 feature: IBT, SHSTK