-
Notifications
You must be signed in to change notification settings - Fork 0
/
elf.obj
109 lines (103 loc) · 5.61 KB
/
elf.obj
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
elf.o: file format elf64-x86-64
elf.o
architecture: i386:x86-64, flags 0x00000011:
HAS_RELOC, HAS_SYMS
start address 0x0000000000000000
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000008 0000000000000000 0000000000000000 00000040 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 00000000 0000000000000000 0000000000000000 00000048 2**0
CONTENTS, ALLOC, LOAD, DATA
2 .bss 00000000 0000000000000000 0000000000000000 00000048 2**0
ALLOC
3 .debug_info 0000006d 0000000000000000 0000000000000000 00000048 2**0
CONTENTS, RELOC, READONLY, DEBUGGING, OCTETS
4 .debug_abbrev 0000004f 0000000000000000 0000000000000000 000000b5 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
5 .debug_aranges 00000030 0000000000000000 0000000000000000 00000104 2**0
CONTENTS, RELOC, READONLY, DEBUGGING, OCTETS
6 .debug_line 0000005a 0000000000000000 0000000000000000 00000134 2**0
CONTENTS, RELOC, READONLY, DEBUGGING, OCTETS
7 .debug_str 00000092 0000000000000000 0000000000000000 0000018e 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
8 .debug_line_str 0000005a 0000000000000000 0000000000000000 00000220 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
9 .comment 0000002c 0000000000000000 0000000000000000 0000027a 2**0
CONTENTS, READONLY
10 .note.GNU-stack 00000000 0000000000000000 0000000000000000 000002a6 2**0
CONTENTS, READONLY
11 .note.gnu.property 00000020 0000000000000000 0000000000000000 000002a8 2**3
CONTENTS, ALLOC, LOAD, READONLY, DATA
12 .eh_frame 00000030 0000000000000000 0000000000000000 000002c8 2**3
CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA
SYMBOL TABLE:
0000000000000000 l df *ABS* 0000000000000000 elf_example.c
0000000000000000 l d .text 0000000000000000 .text
0000000000000000 l d .debug_info 0000000000000000 .debug_info
0000000000000000 l d .debug_abbrev 0000000000000000 .debug_abbrev
0000000000000000 l d .debug_line 0000000000000000 .debug_line
0000000000000000 l d .debug_str 0000000000000000 .debug_str
0000000000000000 l d .debug_line_str 0000000000000000 .debug_line_str
0000000000000000 g F .text 0000000000000008 add
Contents of section .text:
0000 f30f1efa 8d0437c3 ......7.
Contents of section .debug_info:
0000 69000000 05000108 00000000 02000000 i...............
0010 001d0000 00000000 00000000 00000000 ................
0020 00000800 00000000 00000000 00000361 ...............a
0030 64640001 010c6500 00000000 00000000 dd....e.........
0040 00000800 00000000 0000019c 65000000 ............e...
0050 01780014 65000000 01550179 001b6500 .x..e....U.y..e.
0060 00000154 00040405 696e7400 00 ...T....int..
Contents of section .debug_abbrev:
0000 01050003 083a2101 3b210139 0b491302 .....:!.;!.9.I..
0010 18000002 1101250e 130b031f 1b1f1101 ......%.........
0020 12071017 0000032e 013f1903 083a0b3b .........?...:.;
0030 0b390b27 19491311 01120740 187a1901 .9.'[email protected]..
0040 13000004 24000b0b 3e0b0308 000000 ....$...>......
Contents of section .debug_aranges:
0000 2c000000 02000000 00000800 00000000 ,...............
0010 00000000 00000000 08000000 00000000 ................
0020 00000000 00000000 00000000 00000000 ................
Contents of section .debug_line:
0000 56000000 05000800 2e000000 010101fb V...............
0010 0e0d0001 01010100 00000100 00010101 ................
0020 1f020000 00000000 00000201 1f020f02 ................
0030 00000000 01000000 0001051e 00090200 ................
0040 00000000 00000001 06010520 064a0529 ........... .J.)
0050 0601052e 3c020100 0101 ....<.....
Contents of section .debug_str:
0000 474e5520 43313720 31312e34 2e30202d GNU C17 11.4.0 -
0010 6d74756e 653d6765 6e657269 63202d6d mtune=generic -m
0020 61726368 3d783836 2d363420 2d67202d arch=x86-64 -g -
0030 4f33202d 66617379 6e636872 6f6e6f75 O3 -fasynchronou
0040 732d756e 77696e64 2d746162 6c657320 s-unwind-tables
0050 2d667374 61636b2d 70726f74 6563746f -fstack-protecto
0060 722d7374 726f6e67 202d6673 7461636b r-strong -fstack
0070 2d636c61 73682d70 726f7465 6374696f -clash-protectio
0080 6e202d66 63662d70 726f7465 6374696f n -fcf-protectio
0090 6e00 n.
Contents of section .debug_line_str:
0000 2f6d6e74 2f642f43 4f44452f 656c6600 /mnt/d/CODE/elf.
0010 6578616d 706c652f 656c665f 6578616d example/elf_exam
0020 706c652e 63002f6d 6e742f64 2f434f44 ple.c./mnt/d/COD
0030 452f656c 66006578 616d706c 6500656c E/elf.example.el
0040 665f6578 616d706c 652e6300 656c665f f_example.c.elf_
0050 6578616d 706c652e 6300 example.c.
Contents of section .comment:
0000 00474343 3a202855 62756e74 75203131 .GCC: (Ubuntu 11
0010 2e342e30 2d317562 756e7475 317e3232 .4.0-1ubuntu1~22
0020 2e303429 2031312e 342e3000 .04) 11.4.0.
Contents of section .note.gnu.property:
0000 04000000 10000000 05000000 474e5500 ............GNU.
0010 020000c0 04000000 03000000 00000000 ................
Contents of section .eh_frame:
0000 14000000 00000000 017a5200 01781001 .........zR..x..
0010 1b0c0708 90010000 14000000 1c000000 ................
0020 00000000 08000000 00000000 00000000 ................
Disassembly of section .text:
0000000000000000 <add>:
0: f3 0f 1e fa endbr64
4: 8d 04 37 lea (%rdi,%rsi,1),%eax
7: c3 ret