My own elf programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

309 lines
18 KiB

En-tête ELF:
Magique: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Classe: ELF64
Données: complément à 2, système à octets de poids faible d'abord (little endian)
Version: 1 (actuelle)
OS/ABI: UNIX - System V
Version ABI: 0
Type: EXEC (fichier exécutable)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Adresse du point d'entrée: 0x4010ce
Début des en-têtes de programme : 64 (octets dans le fichier)
Début des en-têtes de section : 17824 (octets dans le fichier)
Fanions: 0x0
Taille de cet en-tête: 64 (octets)
Taille de l'en-tête du programme: 56 (octets)
Nombre d'en-tête du programme: 11
Taille des en-têtes de section: 64 (octets)
Nombre d'en-têtes de section: 36
Table d'index des chaînes d'en-tête de section: 35
En-têtes de section :
[Nr] Nom Type Adresse Décalage
Taille TaillEntrée Fanion Lien Info Alignement
[ 0] NULL 0000000000000000 00000000
0000000000000000 0000000000000000 0 0 0
[ 1] .interp PROGBITS 00000000004002a8 000002a8
000000000000001c 0000000000000000 A 0 0 1
[ 2] .note.gnu.bu[...] NOTE 00000000004002c4 000002c4
0000000000000024 0000000000000000 A 0 0 4
[ 3] .note.ABI-tag NOTE 00000000004002e8 000002e8
0000000000000020 0000000000000000 A 0 0 4
[ 4] .gnu.hash GNU_HASH 0000000000400308 00000308
000000000000001c 0000000000000000 A 5 0 8
[ 5] .dynsym DYNSYM 0000000000400328 00000328
0000000000000048 0000000000000018 A 6 1 8
[ 6] .dynstr STRTAB 0000000000400370 00000370
0000000000000038 0000000000000000 A 0 0 1
[ 7] .gnu.version VERSYM 00000000004003a8 000003a8
0000000000000006 0000000000000002 A 5 0 2
[ 8] .gnu.version_r VERNEED 00000000004003b0 000003b0
0000000000000020 0000000000000000 A 6 1 8
[ 9] .rela.dyn RELA 00000000004003d0 000003d0
0000000000000018 0000000000000018 A 5 0 8
[10] .rela.plt RELA 00000000004003e8 000003e8
0000000000000030 0000000000000018 AI 5 22 8
[11] .init PROGBITS 0000000000401000 00001000
000000000000001a 0000000000000000 AX 0 0 4
[12] .plt PROGBITS 0000000000401020 00001020
0000000000000030 0000000000000010 AX 0 0 16
[13] .text PROGBITS 0000000000401050 00001050
00000000000001d2 0000000000000000 AX 0 0 16
[14] .fini PROGBITS 0000000000401224 00001224
0000000000000009 0000000000000000 AX 0 0 4
[15] .rodata PROGBITS 0000000000402000 00002000
0000000000000010 0000000000000000 A 0 0 8
[16] .eh_frame_hdr PROGBITS 0000000000402010 00002010
0000000000000034 0000000000000000 A 0 0 4
[17] .eh_frame PROGBITS 0000000000402048 00002048
00000000000000f8 0000000000000000 A 0 0 8
[18] .init_array INIT_ARRAY 0000000000403e18 00002e18
0000000000000008 0000000000000008 WA 0 0 8
[19] .fini_array FINI_ARRAY 0000000000403e20 00002e20
0000000000000008 0000000000000008 WA 0 0 8
[20] .dynamic DYNAMIC 0000000000403e28 00002e28
00000000000001d0 0000000000000010 WA 6 0 8
[21] .got PROGBITS 0000000000403ff8 00002ff8
0000000000000008 0000000000000008 WA 0 0 8
[22] .got.plt PROGBITS 0000000000404000 00003000
0000000000000028 0000000000000008 WA 0 0 8
[23] .data PROGBITS 0000000000404028 00003028
0000000000000004 0000000000000000 WA 0 0 1
[24] .bss NOBITS 0000000000404030 0000302c
0000000000000020 0000000000000000 WA 0 0 16
[25] .comment PROGBITS 0000000000000000 0000302c
0000000000000059 0000000000000001 MS 0 0 1
[26] .debug_aranges PROGBITS 0000000000000000 00003085
0000000000000030 0000000000000000 0 0 1
[27] .debug_info PROGBITS 0000000000000000 000030b5
0000000000000244 0000000000000000 0 0 1
[28] .debug_abbrev PROGBITS 0000000000000000 000032f9
00000000000001b1 0000000000000000 0 0 1
[29] .debug_line PROGBITS 0000000000000000 000034aa
000000000000016b 0000000000000000 0 0 1
[30] .debug_str PROGBITS 0000000000000000 00003615
0000000000000142 0000000000000001 MS 0 0 1
[31] .debug_loc PROGBITS 0000000000000000 00003757
0000000000000180 0000000000000000 0 0 1
[32] .debug_ranges PROGBITS 0000000000000000 000038d7
0000000000000050 0000000000000000 0 0 1
[33] .symtab SYMTAB 0000000000000000 00003928
0000000000000948 0000000000000018 34 81 8
[34] .strtab STRTAB 0000000000000000 00004270
00000000000001d3 0000000000000000 0 0 1
[35] .shstrtab STRTAB 0000000000000000 00004443
000000000000015c 0000000000000000 0 0 1
Clé des fanions :
W (écriture), A (allocation), X (exécution), M (fusion), S (chaînes), I (info),
L (ordre des liens), O (traitement supplémentaire par l'OS requis), G (groupe),
T (TLS), C (compressé), x (inconnu), o (spécifique à l'OS), E (exclu),
D (mbind), l (grand), p (processor specific)
Il n'y a pas de groupe de section dans ce fichier.
En-têtes de programme :
Type Décalage Adr.virt Adr.phys.
Taille fichier Taille mémoire Fanion Alignement
PHDR 0x0000000000000040 0x0000000000400040 0x0000000000400040
0x0000000000000268 0x0000000000000268 R 0x8
INTERP 0x00000000000002a8 0x00000000004002a8 0x00000000004002a8
0x000000000000001c 0x000000000000001c R 0x1
[Réquisition de l'interpréteur de programme: /lib64/ld-linux-x86-64.so.2]
LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000
0x0000000000000418 0x0000000000000418 R 0x1000
LOAD 0x0000000000001000 0x0000000000401000 0x0000000000401000
0x000000000000022d 0x000000000000022d R E 0x1000
LOAD 0x0000000000002000 0x0000000000402000 0x0000000000402000
0x0000000000000140 0x0000000000000140 R 0x1000
LOAD 0x0000000000002e18 0x0000000000403e18 0x0000000000403e18
0x0000000000000214 0x0000000000000238 RW 0x1000
DYNAMIC 0x0000000000002e28 0x0000000000403e28 0x0000000000403e28
0x00000000000001d0 0x00000000000001d0 RW 0x8
NOTE 0x00000000000002c4 0x00000000004002c4 0x00000000004002c4
0x0000000000000044 0x0000000000000044 R 0x4
GNU_EH_FRAME 0x0000000000002010 0x0000000000402010 0x0000000000402010
0x0000000000000034 0x0000000000000034 R 0x4
GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 RW 0x10
GNU_RELRO 0x0000000000002e18 0x0000000000403e18 0x0000000000403e18
0x00000000000001e8 0x00000000000001e8 R 0x1
Correspondance section/segment :
Sections de segment...
00
01 .interp
02 .interp .note.gnu.build-id .note.ABI-tag .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt
03 .init .plt .text .fini
04 .rodata .eh_frame_hdr .eh_frame
05 .init_array .fini_array .dynamic .got .got.plt .data .bss
06 .dynamic
07 .note.gnu.build-id .note.ABI-tag
08 .eh_frame_hdr
09
10 .init_array .fini_array .dynamic .got
Dynamic section at offset 0x2e28 contains 24 entries:
Étiquettes Type Nom/Valeur
0x0000000000000001 (NEEDED) Bibliothèque partagée : [libc.so.6]
0x000000000000000c (INIT) 0x401000
0x000000000000000d (FINI) 0x401224
0x0000000000000019 (INIT_ARRAY) 0x403e18
0x000000000000001b (INIT_ARRAYSZ) 8 (octets)
0x000000000000001a (FINI_ARRAY) 0x403e20
0x000000000000001c (FINI_ARRAYSZ) 8 (octets)
0x000000006ffffef5 (GNU_HASH) 0x400308
0x0000000000000005 (STRTAB) 0x400370
0x0000000000000006 (SYMTAB) 0x400328
0x000000000000000a (STRSZ) 56 (octets)
0x000000000000000b (SYMENT) 24 (octets)
0x0000000000000015 (DEBUG) 0x0
0x0000000000000003 (PLTGOT) 0x404000
0x0000000000000002 (PLTRELSZ) 48 (octets)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x4003e8
0x0000000000000007 (RELA) 0x4003d0
0x0000000000000008 (RELASZ) 24 (octets)
0x0000000000000009 (RELAENT) 24 (octets)
0x000000006ffffffe (VERNEED) 0x4003b0
0x000000006fffffff (VERNEEDNUM) 1
0x000000006ffffff0 (VERSYM) 0x4003a8
0x0000000000000000 (NULL) 0x0
Section de réadressage '.rela.dyn' à l'adresse de décalage 0x3d0 contient 1 entrée :
Décalage Info Type Val.-symboles Noms-symb.+ Addenda
000000403ff8 000200000006 R_X86_64_GLOB_DAT 0000000000000000 __gmon_start__ + 0
Section de réadressage '.rela.plt' à l'adresse de décalage 0x3e8 contient 2 entrées :
Décalage Info Type Val.-symboles Noms-symb.+ Addenda
000000404018 000100000007 R_X86_64_JUMP_SLO 0000000000000000 __libc_start_main@GLIBC_2.2.5 + 0
000000404020 000200000007 R_X86_64_JUMP_SLO 0000000000000000 __gmon_start__ + 0
Pas d'information de déroulement spécifique au processeur à décoder
La table de symboles « .dynsym » contient 3 entrées :
Num: Valeur Tail Type Lien Vis Ndx Nom
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000000 0 FUNC GLOBAL DEFAULT UND [...]@GLIBC_2.2.5 (2)
2: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
La table de symboles « .symtab » contient 99 entrées :
Num: Valeur Tail Type Lien Vis Ndx Nom
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 00000000004002a8 0 SECTION LOCAL DEFAULT 1 .interp
2: 00000000004002c4 0 SECTION LOCAL DEFAULT 2 .note.gnu.build-id
3: 00000000004002e8 0 SECTION LOCAL DEFAULT 3 .note.ABI-tag
4: 0000000000400308 0 SECTION LOCAL DEFAULT 4 .gnu.hash
5: 0000000000400328 0 SECTION LOCAL DEFAULT 5 .dynsym
6: 0000000000400370 0 SECTION LOCAL DEFAULT 6 .dynstr
7: 00000000004003a8 0 SECTION LOCAL DEFAULT 7 .gnu.version
8: 00000000004003b0 0 SECTION LOCAL DEFAULT 8 .gnu.version_r
9: 00000000004003d0 0 SECTION LOCAL DEFAULT 9 .rela.dyn
10: 00000000004003e8 0 SECTION LOCAL DEFAULT 10 .rela.plt
11: 0000000000401000 0 SECTION LOCAL DEFAULT 11 .init
12: 0000000000401020 0 SECTION LOCAL DEFAULT 12 .plt
13: 0000000000401050 0 SECTION LOCAL DEFAULT 13 .text
14: 0000000000401224 0 SECTION LOCAL DEFAULT 14 .fini
15: 0000000000402000 0 SECTION LOCAL DEFAULT 15 .rodata
16: 0000000000402010 0 SECTION LOCAL DEFAULT 16 .eh_frame_hdr
17: 0000000000402048 0 SECTION LOCAL DEFAULT 17 .eh_frame
18: 0000000000403e18 0 SECTION LOCAL DEFAULT 18 .init_array
19: 0000000000403e20 0 SECTION LOCAL DEFAULT 19 .fini_array
20: 0000000000403e28 0 SECTION LOCAL DEFAULT 20 .dynamic
21: 0000000000403ff8 0 SECTION LOCAL DEFAULT 21 .got
22: 0000000000404000 0 SECTION LOCAL DEFAULT 22 .got.plt
23: 0000000000404028 0 SECTION LOCAL DEFAULT 23 .data
24: 0000000000404030 0 SECTION LOCAL DEFAULT 24 .bss
25: 0000000000000000 0 SECTION LOCAL DEFAULT 25 .comment
26: 0000000000000000 0 SECTION LOCAL DEFAULT 26 .debug_aranges
27: 0000000000000000 0 SECTION LOCAL DEFAULT 27 .debug_info
28: 0000000000000000 0 SECTION LOCAL DEFAULT 28 .debug_abbrev
29: 0000000000000000 0 SECTION LOCAL DEFAULT 29 .debug_line
30: 0000000000000000 0 SECTION LOCAL DEFAULT 30 .debug_str
31: 0000000000000000 0 SECTION LOCAL DEFAULT 31 .debug_loc
32: 0000000000000000 0 SECTION LOCAL DEFAULT 32 .debug_ranges
33: 0000000000000000 0 FILE LOCAL DEFAULT ABS
34: 0000000000404040 16 OBJECT LOCAL DEFAULT 24 g
35: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
36: 0000000000401100 0 FUNC LOCAL DEFAULT 13 deregister_tm_clones
37: 0000000000401130 0 FUNC LOCAL DEFAULT 13 register_tm_clones
38: 0000000000401170 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux
39: 0000000000404030 1 OBJECT LOCAL DEFAULT 24 completed.7324
40: 0000000000403e20 0 OBJECT LOCAL DEFAULT 19 __do_global_dtor[...]
41: 00000000004011a0 0 FUNC LOCAL DEFAULT 13 frame_dummy
42: 0000000000403e18 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_in[...]
43: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
44: 000000000040213c 0 OBJECT LOCAL DEFAULT 17 __FRAME_END__
45: 0000000000000000 0 FILE LOCAL DEFAULT ABS
46: 00000000000000ee 0 NOTYPE LOCAL DEFAULT 27
47: 00000000000000ee 0 NOTYPE LOCAL DEFAULT 27
48: 00000000000000ee 0 NOTYPE LOCAL DEFAULT 27
49: 00000000000000ee 0 NOTYPE LOCAL DEFAULT 27
50: 00000000000000ee 0 NOTYPE LOCAL DEFAULT 27
51: 00000000000000ee 0 NOTYPE LOCAL DEFAULT 27
52: 00000000000000ee 0 NOTYPE LOCAL DEFAULT 27
53: 00000000000000ee 0 NOTYPE LOCAL DEFAULT 27
54: 00000000000000ee 0 NOTYPE LOCAL DEFAULT 27
55: 00000000000000ee 0 NOTYPE LOCAL DEFAULT 27
56: 00000000000000ee 0 NOTYPE LOCAL DEFAULT 27
57: 00000000000000ee 0 NOTYPE LOCAL DEFAULT 27
58: 00000000000000ee 0 NOTYPE LOCAL DEFAULT 27
59: 00000000000000ee 0 NOTYPE LOCAL DEFAULT 27
60: 0000000000000000 0 FILE LOCAL DEFAULT ABS
61: 000000000000017c 0 NOTYPE LOCAL DEFAULT 27
62: 000000000000017c 0 NOTYPE LOCAL DEFAULT 27
63: 000000000000017c 0 NOTYPE LOCAL DEFAULT 27
64: 000000000000017c 0 NOTYPE LOCAL DEFAULT 27
65: 000000000000017c 0 NOTYPE LOCAL DEFAULT 27
66: 000000000000017c 0 NOTYPE LOCAL DEFAULT 27
67: 000000000000017c 0 NOTYPE LOCAL DEFAULT 27
68: 000000000000017c 0 NOTYPE LOCAL DEFAULT 27
69: 000000000000017c 0 NOTYPE LOCAL DEFAULT 27
70: 000000000000017c 0 NOTYPE LOCAL DEFAULT 27
71: 000000000000017c 0 NOTYPE LOCAL DEFAULT 27
72: 000000000000017c 0 NOTYPE LOCAL DEFAULT 27
73: 000000000000017c 0 NOTYPE LOCAL DEFAULT 27
74: 000000000000017c 0 NOTYPE LOCAL DEFAULT 27
75: 0000000000000000 0 FILE LOCAL DEFAULT ABS
76: 0000000000403e20 0 NOTYPE LOCAL DEFAULT 18 __init_array_end
77: 0000000000403e28 0 OBJECT LOCAL DEFAULT 20 _DYNAMIC
78: 0000000000403e18 0 NOTYPE LOCAL DEFAULT 18 __init_array_start
79: 0000000000402010 0 NOTYPE LOCAL DEFAULT 16 __GNU_EH_FRAME_HDR
80: 0000000000404000 0 OBJECT LOCAL DEFAULT 22 _GLOBAL_OFFSET_TABLE_
81: 0000000000401220 2 FUNC GLOBAL DEFAULT 13 __libc_csu_fini
82: 0000000000404028 0 NOTYPE WEAK DEFAULT 23 data_start
83: 000000000040402c 0 NOTYPE GLOBAL DEFAULT 23 _edata
84: 0000000000401224 0 FUNC GLOBAL DEFAULT 14 _fini
85: 000000000000017c 0 NOTYPE WEAK HIDDEN 27 testfile_lto_mai[...]
86: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_mai[...]
87: 0000000000404028 0 NOTYPE GLOBAL DEFAULT 23 __data_start
88: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
89: 0000000000402008 0 OBJECT GLOBAL HIDDEN 15 __dso_handle
90: 0000000000402000 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used
91: 00000000004011b0 101 FUNC GLOBAL DEFAULT 13 __libc_csu_init
92: 0000000000404050 0 NOTYPE GLOBAL DEFAULT 24 _end
93: 00000000004010ce 0 FUNC GLOBAL DEFAULT 13 _start
94: 000000000040402c 0 NOTYPE GLOBAL DEFAULT 24 __bss_start
95: 0000000000401050 126 FUNC GLOBAL DEFAULT 13 main
96: 0000000000404030 0 OBJECT GLOBAL HIDDEN 23 __TMC_END__
97: 00000000000000ee 0 NOTYPE WEAK HIDDEN 27 testfile_lto_fun[...]
98: 0000000000401000 0 FUNC GLOBAL DEFAULT 11 _init
La section des symboles de version « .gnu.version » contient 3 entrées :
Adr: 0x00000000004003a8 Décalage: 0x000003a8 Lien: 5 (.dynsym)
000: 0 (*local*) 2 (GLIBC_2.2.5) 0 (*local*)
La section de dépendances de version « .gnu.version_r » contient 1 entrée :
Adr: 0x00000000004003b0 Décalage: 0x000003b0 Lien: 6 (.dynstr)
000000: Version: 1 Fichier: libc.so.6 Compteur: 1
0x0010: Nom: GLIBC_2.2.5 Fanions: aucun Version: 2
Affichage des notes trouvées dans: .note.gnu.build-id
Propriétaire Taille des données Description
GNU 0x00000014 NT_GNU_BUILD_ID (chaîne de bits du ID de construction unique)
ID construction: e6e722a6489c8e91bb91c4e0f9b28551da435913
Affichage des notes trouvées dans: .note.ABI-tag
Propriétaire Taille des données Description
GNU 0x00000010 NT_GNU_ABI_TAG (étiquette de version ABI)
OS: Linux, ABI: 2.6.32