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.

281 lines
17 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: 0x4003b0
Début des en-têtes de programme : 64 (octets dans le fichier)
Début des en-têtes de section : 3656 (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: 8
Taille des en-têtes de section: 64 (octets)
Nombre d'en-têtes de section: 37
Table d'index des chaînes d'en-tête de section: 34
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 0000000000400200 00000200
000000000000001c 0000000000000000 A 0 0 1
[ 2] .note.ABI-tag NOTE 000000000040021c 0000021c
0000000000000020 0000000000000000 A 0 0 4
[ 3] .hash HASH 0000000000400240 00000240
0000000000000024 0000000000000004 A 4 0 8
[ 4] .dynsym DYNSYM 0000000000400268 00000268
0000000000000060 0000000000000018 A 5 1 8
[ 5] .dynstr STRTAB 00000000004002c8 000002c8
000000000000004c 0000000000000000 A 0 0 1
[ 6] .gnu.version VERSYM 0000000000400314 00000314
0000000000000008 0000000000000002 A 4 0 2
[ 7] .gnu.version_r VERNEED 0000000000400320 00000320
0000000000000020 0000000000000000 A 5 1 8
[ 8] .rela.dyn RELA 0000000000400340 00000340
0000000000000018 0000000000000018 A 4 0 8
[ 9] .rela.plt RELA 0000000000400358 00000358
0000000000000018 0000000000000018 A 4 11 8
[10] .init PROGBITS 0000000000400370 00000370
0000000000000018 0000000000000000 AX 0 0 4
[11] .plt PROGBITS 0000000000400388 00000388
0000000000000020 0000000000000010 AX 0 0 4
[12] .text PROGBITS 00000000004003b0 000003b0
00000000000001c8 0000000000000000 AX 0 0 16
[13] .fini PROGBITS 0000000000400578 00000578
000000000000000e 0000000000000000 AX 0 0 4
[14] .rodata PROGBITS 0000000000400588 00000588
0000000000000004 0000000000000000 A 0 0 4
[15] .eh_frame_hdr PROGBITS 000000000040058c 0000058c
0000000000000034 0000000000000000 A 0 0 4
[16] .eh_frame PROGBITS 00000000004005c0 000005c0
00000000000000bc 0000000000000000 A 0 0 8
[17] .ctors PROGBITS 0000000000500680 00000680
0000000000000010 0000000000000000 WA 0 0 8
[18] .dtors PROGBITS 0000000000500690 00000690
0000000000000010 0000000000000000 WA 0 0 8
[19] .jcr PROGBITS 00000000005006a0 000006a0
0000000000000008 0000000000000000 WA 0 0 8
[20] .dynamic DYNAMIC 00000000005006a8 000006a8
0000000000000190 0000000000000010 WA 5 0 8
[21] .got PROGBITS 0000000000500838 00000838
0000000000000008 0000000000000008 WA 0 0 8
[22] .got.plt PROGBITS 0000000000500840 00000840
0000000000000020 0000000000000008 WA 0 0 8
[23] .data PROGBITS 0000000000500860 00000860
0000000000000018 0000000000000000 WA 0 0 8
[24] .bss NOBITS 0000000000500878 00000878
0000000000000010 0000000000000000 WA 0 0 4
[25] .comment PROGBITS 0000000000000000 00000878
0000000000000117 0000000000000000 0 0 1
[26] .debug_aranges PROGBITS 0000000000000000 0000098f
0000000000000030 0000000000000000 0 0 1
[27] .debug_pubnames PROGBITS 0000000000000000 000009bf
000000000000003e 0000000000000000 0 0 1
[28] .debug_info PROGBITS 0000000000000000 000009fd
0000000000000119 0000000000000000 0 0 1
[29] .debug_abbrev PROGBITS 0000000000000000 00000b16
000000000000007a 0000000000000000 0 0 1
[30] .debug_line PROGBITS 0000000000000000 00000b90
000000000000003e 0000000000000000 0 0 1
[31] .debug_frame PROGBITS 0000000000000000 00000bd0
0000000000000068 0000000000000000 0 0 8
[32] .debug_str PROGBITS 0000000000000000 00000c38
0000000000000071 0000000000000001 MS 0 0 1
[33] .debug_loc PROGBITS 0000000000000000 00000ca9
000000000000004c 0000000000000000 0 0 1
[34] .shstrtab STRTAB 0000000000000000 00000cf5
000000000000014f 0000000000000000 0 0 1
[35] .symtab SYMTAB 0000000000000000 00001788
0000000000000798 0000000000000018 36 53 8
[36] .strtab STRTAB 0000000000000000 00001f20
0000000000000235 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
0x00000000000001c0 0x00000000000001c0 R E 0x8
INTERP 0x0000000000000200 0x0000000000400200 0x0000000000400200
0x000000000000001c 0x000000000000001c R 0x1
[Réquisition de l'interpréteur de programme: /lib64/ld-linux-x86-64.so.2]
LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000
0x000000000000067c 0x000000000000067c R E 0x100000
LOAD 0x0000000000000680 0x0000000000500680 0x0000000000500680
0x00000000000001f8 0x0000000000000208 RW 0x100000
DYNAMIC 0x00000000000006a8 0x00000000005006a8 0x00000000005006a8
0x0000000000000190 0x0000000000000190 RW 0x8
NOTE 0x000000000000021c 0x000000000040021c 0x000000000040021c
0x0000000000000020 0x0000000000000020 R 0x4
GNU_EH_FRAME 0x000000000000058c 0x000000000040058c 0x000000000040058c
0x0000000000000034 0x0000000000000034 R 0x4
GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 RW 0x8
Correspondance section/segment :
Sections de segment...
00
01 .interp
02 .interp .note.ABI-tag .hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame_hdr .eh_frame
03 .ctors .dtors .jcr .dynamic .got .got.plt .data .bss
04 .dynamic
05 .note.ABI-tag
06 .eh_frame_hdr
07
Dynamic section at offset 0x6a8 contains 20 entries:
Étiquettes Type Nom/Valeur
0x0000000000000001 (NEEDED) Bibliothèque partagée : [libc.so.6]
0x000000000000000c (INIT) 0x400370
0x000000000000000d (FINI) 0x400578
0x0000000000000004 (HASH) 0x400240
0x0000000000000005 (STRTAB) 0x4002c8
0x0000000000000006 (SYMTAB) 0x400268
0x000000000000000a (STRSZ) 76 (octets)
0x000000000000000b (SYMENT) 24 (octets)
0x0000000000000015 (DEBUG) 0x0
0x0000000000000003 (PLTGOT) 0x500840
0x0000000000000002 (PLTRELSZ) 24 (octets)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x400358
0x0000000000000007 (RELA) 0x400340
0x0000000000000008 (RELASZ) 24 (octets)
0x0000000000000009 (RELAENT) 24 (octets)
0x000000006ffffffe (VERNEED) 0x400320
0x000000006fffffff (VERNEEDNUM) 1
0x000000006ffffff0 (VERSYM) 0x400314
0x0000000000000000 (NULL) 0x0
Section de réadressage '.rela.dyn' à l'adresse de décalage 0x340 contient 1 entrée :
Décalage Info Type Val.-symboles Noms-symb.+ Addenda
000000500838 000300000006 R_X86_64_GLOB_DAT 0000000000000000 __gmon_start__ + 0
Section de réadressage '.rela.plt' à l'adresse de décalage 0x358 contient 1 entrée :
Décalage Info Type Val.-symboles Noms-symb.+ Addenda
000000500858 000100000007 R_X86_64_JUMP_SLO 0000000000000000 __libc_start_main@GLIBC_2.2.5 + 0
Pas d'information de déroulement spécifique au processeur à décoder
La table de symboles « .dynsym » contient 4 entrées :
Num: Valeur Tail Type Lien Vis Ndx Nom
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000000 400 FUNC GLOBAL DEFAULT UND [...]@GLIBC_2.2.5 (2)
2: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses
3: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
La table de symboles « .symtab » contient 81 entrées :
Num: Valeur Tail Type Lien Vis Ndx Nom
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000400200 0 SECTION LOCAL DEFAULT 1 .interp
2: 000000000040021c 0 SECTION LOCAL DEFAULT 2 .note.ABI-tag
3: 0000000000400240 0 SECTION LOCAL DEFAULT 3 .hash
4: 0000000000400268 0 SECTION LOCAL DEFAULT 4 .dynsym
5: 00000000004002c8 0 SECTION LOCAL DEFAULT 5 .dynstr
6: 0000000000400314 0 SECTION LOCAL DEFAULT 6 .gnu.version
7: 0000000000400320 0 SECTION LOCAL DEFAULT 7 .gnu.version_r
8: 0000000000400340 0 SECTION LOCAL DEFAULT 8 .rela.dyn
9: 0000000000400358 0 SECTION LOCAL DEFAULT 9 .rela.plt
10: 0000000000400370 0 SECTION LOCAL DEFAULT 10 .init
11: 0000000000400388 0 SECTION LOCAL DEFAULT 11 .plt
12: 00000000004003b0 0 SECTION LOCAL DEFAULT 12 .text
13: 0000000000400578 0 SECTION LOCAL DEFAULT 13 .fini
14: 0000000000400588 0 SECTION LOCAL DEFAULT 14 .rodata
15: 000000000040058c 0 SECTION LOCAL DEFAULT 15 .eh_frame_hdr
16: 00000000004005c0 0 SECTION LOCAL DEFAULT 16 .eh_frame
17: 0000000000500680 0 SECTION LOCAL DEFAULT 17 .ctors
18: 0000000000500690 0 SECTION LOCAL DEFAULT 18 .dtors
19: 00000000005006a0 0 SECTION LOCAL DEFAULT 19 .jcr
20: 00000000005006a8 0 SECTION LOCAL DEFAULT 20 .dynamic
21: 0000000000500838 0 SECTION LOCAL DEFAULT 21 .got
22: 0000000000500840 0 SECTION LOCAL DEFAULT 22 .got.plt
23: 0000000000500860 0 SECTION LOCAL DEFAULT 23 .data
24: 0000000000500878 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_pubnames
28: 0000000000000000 0 SECTION LOCAL DEFAULT 28 .debug_info
29: 0000000000000000 0 SECTION LOCAL DEFAULT 29 .debug_abbrev
30: 0000000000000000 0 SECTION LOCAL DEFAULT 30 .debug_line
31: 0000000000000000 0 SECTION LOCAL DEFAULT 31 .debug_frame
32: 0000000000000000 0 SECTION LOCAL DEFAULT 32 .debug_str
33: 0000000000000000 0 SECTION LOCAL DEFAULT 33 .debug_loc
34: 0000000000000000 0 SECTION LOCAL DEFAULT 34 .shstrtab
35: 0000000000000000 0 SECTION LOCAL DEFAULT 35 .symtab
36: 0000000000000000 0 SECTION LOCAL DEFAULT 36 .strtab
37: 00000000004003dc 0 FUNC LOCAL DEFAULT 12 call_gmon_start
38: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
39: 0000000000500680 0 OBJECT LOCAL DEFAULT 17 __CTOR_LIST__
40: 0000000000500690 0 OBJECT LOCAL DEFAULT 18 __DTOR_LIST__
41: 00000000005006a0 0 OBJECT LOCAL DEFAULT 19 __JCR_LIST__
42: 0000000000500878 1 OBJECT LOCAL DEFAULT 24 completed.4926
43: 0000000000500870 0 OBJECT LOCAL DEFAULT 23 p.4925
44: 0000000000400400 0 FUNC LOCAL DEFAULT 12 __do_global_dtors_aux
45: 0000000000400440 0 FUNC LOCAL DEFAULT 12 frame_dummy
46: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
47: 0000000000500688 0 OBJECT LOCAL DEFAULT 17 __CTOR_END__
48: 0000000000500698 0 OBJECT LOCAL DEFAULT 18 __DTOR_END__
49: 0000000000400678 0 OBJECT LOCAL DEFAULT 16 __FRAME_END__
50: 00000000005006a0 0 OBJECT LOCAL DEFAULT 19 __JCR_END__
51: 0000000000400540 0 FUNC LOCAL DEFAULT 12 __do_global_ctors_aux
52: 0000000000000000 0 FILE LOCAL DEFAULT ABS v.c
53: 0000000000000000 400 FUNC GLOBAL DEFAULT UND __libc_start_mai[...]
54: 000000000050087c 4 OBJECT GLOBAL DEFAULT 24 j
55: 00000000005006a8 0 OBJECT GLOBAL DEFAULT 20 _DYNAMIC
56: 0000000000500680 0 NOTYPE GLOBAL HIDDEN ABS __fini_array_end
57: 0000000000500868 0 OBJECT GLOBAL HIDDEN 23 __dso_handle
58: 0000000000400530 2 FUNC GLOBAL DEFAULT 12 __libc_csu_fini
59: 0000000000400370 0 FUNC GLOBAL DEFAULT 10 _init
60: 0000000000500880 4 OBJECT GLOBAL DEFAULT 24 i
61: 0000000000400468 31 FUNC GLOBAL DEFAULT 12 caller
62: 00000000004003b0 0 FUNC GLOBAL DEFAULT 12 _start
63: 0000000000500680 0 NOTYPE GLOBAL HIDDEN ABS __fini_array_start
64: 00000000004004b0 113 FUNC GLOBAL DEFAULT 12 __libc_csu_init
65: 0000000000500878 0 NOTYPE GLOBAL DEFAULT ABS __bss_start
66: 000000000040049c 19 FUNC GLOBAL DEFAULT 12 main
67: 0000000000400487 21 FUNC GLOBAL DEFAULT 12 caller2
68: 0000000000500680 0 NOTYPE GLOBAL HIDDEN ABS __init_array_end
69: 0000000000500860 0 NOTYPE WEAK DEFAULT 23 data_start
70: 0000000000400578 0 FUNC GLOBAL DEFAULT 13 _fini
71: 0000000000500680 0 NOTYPE GLOBAL HIDDEN ABS __preinit_array_end
72: 0000000000500878 0 NOTYPE GLOBAL DEFAULT ABS _edata
73: 0000000000500840 0 OBJECT GLOBAL HIDDEN 22 _GLOBAL_OFFSET_TABLE_
74: 0000000000500888 0 NOTYPE GLOBAL DEFAULT ABS _end
75: 0000000000500680 0 NOTYPE GLOBAL HIDDEN ABS __init_array_start
76: 0000000000400588 4 OBJECT GLOBAL DEFAULT 14 _IO_stdin_used
77: 0000000000500860 0 NOTYPE GLOBAL DEFAULT 23 __data_start
78: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses
79: 0000000000500680 0 NOTYPE GLOBAL HIDDEN ABS __preinit_array_start
80: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
Histogramme de la longueur de la liste des baquets (total de 3 baquets) :
Long. Nombre % de couverture totale
0 1 ( 33.3%)
1 1 ( 33.3%) 33.3%
2 1 ( 33.3%) 100.0%
La section des symboles de version « .gnu.version » contient 4 entrées :
Adr: 0x0000000000400314 Décalage: 0x00000314 Lien: 4 (.dynsym)
000: 0 (*local*) 2 (GLIBC_2.2.5) 0 (*local*) 0 (*local*)
La section de dépendances de version « .gnu.version_r » contient 1 entrée :
Adr: 0x0000000000400320 Décalage: 0x00000320 Lien: 5 (.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.ABI-tag
Propriétaire Taille des données Description
GNU 0x00000010 NT_GNU_ABI_TAG (étiquette de version ABI)
OS: Linux, ABI: 2.4.0