Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ readelf -a test
- 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: 0x401020
- Start of program headers: 64 (bytes into file)
- Start of section headers: 15152 (bytes into file)
- Flags: 0x0
- Size of this header: 64 (bytes)
- Size of program headers: 56 (bytes)
- Number of program headers: 11
- Size of section headers: 64 (bytes)
- Number of section headers: 26
- Section header string table index: 25
- Section Headers:
- [Nr] Name Type Address Offset
- Size EntSize Flags Link Info Align
- [ 0] NULL 0000000000000000 00000000
- 0000000000000000 0000000000000000 0 0 0
- [ 1] .interp PROGBITS 00000000004002a8 000002a8
- 000000000000001c 0000000000000000 A 0 0 1
- [ 2] .note.ABI-tag NOTE 00000000004002c4 000002c4
- 0000000000000020 0000000000000000 A 0 0 4
- [ 3] .note.gnu.build-i NOTE 00000000004002e4 000002e4
- 0000000000000024 0000000000000000 A 0 0 4
- [ 4] .gnu.hash GNU_HASH 0000000000400308 00000308
- 000000000000001c 0000000000000000 A 5 0 8
- [ 5] .dynsym DYNSYM 0000000000400328 00000328
- 0000000000000078 0000000000000018 A 6 1 8
- [ 6] .dynstr STRTAB 00000000004003a0 000003a0
- 000000000000006e 0000000000000000 A 0 0 1
- [ 7] .gnu.version VERSYM 000000000040040e 0000040e
- 000000000000000a 0000000000000002 A 5 0 2
- [ 8] .gnu.version_r VERNEED 0000000000400418 00000418
- 0000000000000020 0000000000000000 A 6 1 8
- [ 9] .rela.dyn RELA 0000000000400438 00000438
- 0000000000000060 0000000000000018 A 5 0 8
- [10] .init PROGBITS 0000000000401000 00001000
- 000000000000001b 0000000000000000 AX 0 0 4
- [11] .text PROGBITS 0000000000401020 00001020
- 0000000000000205 0000000000000000 AX 0 0 16
- [12] .fini PROGBITS 0000000000401228 00001228
- 000000000000000d 0000000000000000 AX 0 0 4
- [13] .rodata PROGBITS 0000000000402000 00002000
- 0000000000000004 0000000000000004 AM 0 0 4
- [14] .eh_frame_hdr PROGBITS 0000000000402004 00002004
- 000000000000002c 0000000000000000 A 0 0 4
- [15] .eh_frame PROGBITS 0000000000402030 00002030
- 00000000000000a0 0000000000000000 A 0 0 8
- [16] .init_array INIT_ARRAY 0000000000403e08 00002e08
- 0000000000000008 0000000000000008 WA 0 0 8
- [17] .fini_array FINI_ARRAY 0000000000403e10 00002e10
- 0000000000000008 0000000000000008 WA 0 0 8
- [18] .dynamic DYNAMIC 0000000000403e18 00002e18
- 00000000000001b0 0000000000000010 WA 6 0 8
- [19] .got PROGBITS 0000000000403fc8 00002fc8
- 0000000000000038 0000000000000008 WA 0 0 8
- [20] .data PROGBITS 0000000000404000 00003000
- 0000000000000010 0000000000000000 WA 0 0 8
- [21] .bss NOBITS 0000000000404010 00003010
- 0000000000000008 0000000000000000 WA 0 0 1
- [22] .comment PROGBITS 0000000000000000 00003010
- 0000000000000034 0000000000000001 MS 0 0 1
- [23] .symtab SYMTAB 0000000000000000 00003048
- 0000000000000720 0000000000000018 24 57 8
- [24] .strtab STRTAB 0000000000000000 00003768
- 00000000000002d2 0000000000000000 0 0 1
- [25] .shstrtab STRTAB 0000000000000000 00003a3a
- 00000000000000f0 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),
- l (large), p (processor specific)
- There are no section groups in this file.
- Program Headers:
- Type Offset VirtAddr PhysAddr
- FileSiz MemSiz Flags Align
- PHDR 0x0000000000000040 0x0000000000400040 0x0000000000400040
- 0x0000000000000268 0x0000000000000268 R 0x8
- INTERP 0x00000000000002a8 0x00000000004002a8 0x00000000004002a8
- 0x000000000000001c 0x000000000000001c R 0x1
- [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
- LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000
- 0x0000000000000498 0x0000000000000498 R 0x1000
- LOAD 0x0000000000001000 0x0000000000401000 0x0000000000401000
- 0x0000000000000235 0x0000000000000235 R E 0x1000
- LOAD 0x0000000000002000 0x0000000000402000 0x0000000000402000
- 0x00000000000000d0 0x00000000000000d0 R 0x1000
- LOAD 0x0000000000002e08 0x0000000000403e08 0x0000000000403e08
- 0x0000000000000208 0x0000000000000210 RW 0x1000
- DYNAMIC 0x0000000000002e18 0x0000000000403e18 0x0000000000403e18
- 0x00000000000001b0 0x00000000000001b0 RW 0x8
- NOTE 0x00000000000002c4 0x00000000004002c4 0x00000000004002c4
- 0x0000000000000044 0x0000000000000044 R 0x4
- GNU_EH_FRAME 0x0000000000002004 0x0000000000402004 0x0000000000402004
- 0x000000000000002c 0x000000000000002c R 0x4
- GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
- 0x0000000000000000 0x0000000000000000 RWE 0x10
- GNU_RELRO 0x0000000000002e08 0x0000000000403e08 0x0000000000403e08
- 0x00000000000001f8 0x00000000000001f8 R 0x1
- Section to Segment mapping:
- Segment Sections...
- 00
- 01 .interp
- 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn
- 03 .init .text .fini
- 04 .rodata .eh_frame_hdr .eh_frame
- 05 .init_array .fini_array .dynamic .got .data .bss
- 06 .dynamic
- 07 .note.ABI-tag .note.gnu.build-id
- 08 .eh_frame_hdr
- 09
- 10 .init_array .fini_array .dynamic .got
- Dynamic section at offset 0x2e18 contains 22 entries:
- Tag Type Name/Value
- 0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
- 0x000000000000000c (INIT) 0x401000
- 0x000000000000000d (FINI) 0x401228
- 0x0000000000000019 (INIT_ARRAY) 0x403e08
- 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes)
- 0x000000000000001a (FINI_ARRAY) 0x403e10
- 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
- 0x000000006ffffef5 (GNU_HASH) 0x400308
- 0x0000000000000005 (STRTAB) 0x4003a0
- 0x0000000000000006 (SYMTAB) 0x400328
- 0x000000000000000a (STRSZ) 110 (bytes)
- 0x000000000000000b (SYMENT) 24 (bytes)
- 0x0000000000000015 (DEBUG) 0x0
- 0x0000000000000007 (RELA) 0x400438
- 0x0000000000000008 (RELASZ) 96 (bytes)
- 0x0000000000000009 (RELAENT) 24 (bytes)
- 0x0000000000000018 (BIND_NOW)
- 0x000000006ffffffb (FLAGS_1) Flags: NOW
- 0x000000006ffffffe (VERNEED) 0x400418
- 0x000000006fffffff (VERNEEDNUM) 1
- 0x000000006ffffff0 (VERSYM) 0x40040e
- 0x0000000000000000 (NULL) 0x0
- Relocation section '.rela.dyn' at offset 0x438 contains 4 entries:
- Offset Info Type Sym. Value Sym. Name + Addend
- 000000403fe0 000100000006 R_X86_64_GLOB_DAT 0000000000000000 _ITM_deregisterTMClone + 0
- 000000403fe8 000200000006 R_X86_64_GLOB_DAT 0000000000000000 __libc_start_main@GLIBC_2.2.5 + 0
- 000000403ff0 000300000006 R_X86_64_GLOB_DAT 0000000000000000 __gmon_start__ + 0
- 000000403ff8 000400000006 R_X86_64_GLOB_DAT 0000000000000000 _ITM_registerTMCloneTa + 0
- The decoding of unwind sections for machine type Advanced Micro Devices X86-64 is not currently supported.
- Symbol table '.dynsym' contains 5 entries:
- Num: Value Size Type Bind Vis Ndx Name
- 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
- 1: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTab
- 2: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.2.5 (2)
- 3: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
- 4: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable
- Symbol table '.symtab' contains 76 entries:
- Num: Value Size Type Bind Vis Ndx Name
- 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
- 1: 00000000004002a8 0 SECTION LOCAL DEFAULT 1
- 2: 00000000004002c4 0 SECTION LOCAL DEFAULT 2
- 3: 00000000004002e4 0 SECTION LOCAL DEFAULT 3
- 4: 0000000000400308 0 SECTION LOCAL DEFAULT 4
- 5: 0000000000400328 0 SECTION LOCAL DEFAULT 5
- 6: 00000000004003a0 0 SECTION LOCAL DEFAULT 6
- 7: 000000000040040e 0 SECTION LOCAL DEFAULT 7
- 8: 0000000000400418 0 SECTION LOCAL DEFAULT 8
- 9: 0000000000400438 0 SECTION LOCAL DEFAULT 9
- 10: 0000000000401000 0 SECTION LOCAL DEFAULT 10
- 11: 0000000000401020 0 SECTION LOCAL DEFAULT 11
- 12: 0000000000401228 0 SECTION LOCAL DEFAULT 12
- 13: 0000000000402000 0 SECTION LOCAL DEFAULT 13
- 14: 0000000000402004 0 SECTION LOCAL DEFAULT 14
- 15: 0000000000402030 0 SECTION LOCAL DEFAULT 15
- 16: 0000000000403e08 0 SECTION LOCAL DEFAULT 16
- 17: 0000000000403e10 0 SECTION LOCAL DEFAULT 17
- 18: 0000000000403e18 0 SECTION LOCAL DEFAULT 18
- 19: 0000000000403fc8 0 SECTION LOCAL DEFAULT 19
- 20: 0000000000404000 0 SECTION LOCAL DEFAULT 20
- 21: 0000000000404010 0 SECTION LOCAL DEFAULT 21
- 22: 0000000000000000 0 SECTION LOCAL DEFAULT 22
- 23: 0000000000000000 0 FILE LOCAL DEFAULT ABS init.c
- 24: 0000000000000000 0 FILE LOCAL DEFAULT ABS static-reloc.c
- 25: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
- 26: 0000000000401060 0 FUNC LOCAL DEFAULT 11 deregister_tm_clones
- 27: 0000000000401090 0 FUNC LOCAL DEFAULT 11 register_tm_clones
- 28: 00000000004010d0 0 FUNC LOCAL DEFAULT 11 __do_global_dtors_aux
- 29: 0000000000404010 1 OBJECT LOCAL DEFAULT 21 completed.7287
- 30: 0000000000403e10 0 OBJECT LOCAL DEFAULT 17 __do_global_dtors_aux_fin
- 31: 0000000000401100 0 FUNC LOCAL DEFAULT 11 frame_dummy
- 32: 0000000000403e08 0 OBJECT LOCAL DEFAULT 16 __frame_dummy_init_array_
- 33: 0000000000000000 0 FILE LOCAL DEFAULT ABS /tmp/cckw76XP.o
- 34: 000000000040111a 0 NOTYPE LOCAL DEFAULT 11 find_base
- 35: 0000000000401127 0 NOTYPE LOCAL DEFAULT 11 found_base
- 36: 000000000040112c 0 NOTYPE LOCAL DEFAULT 11 startup
- 37: 0000000000401129 0 NOTYPE LOCAL DEFAULT 11 __initialize_world
- 38: 0000000000401184 0 NOTYPE LOCAL DEFAULT 11 _world
- 39: 0000000000401131 0 NOTYPE LOCAL DEFAULT 11 find_function
- 40: 000000000040113b 0 NOTYPE LOCAL DEFAULT 11 read_dynamic_section
- 41: 0000000000401144 0 NOTYPE LOCAL DEFAULT 11 check_dynamic_type
- 42: 000000000040114d 0 NOTYPE LOCAL DEFAULT 11 string_table_found
- 43: 0000000000401155 0 NOTYPE LOCAL DEFAULT 11 check_next_hash
- 44: 0000000000401161 0 NOTYPE LOCAL DEFAULT 11 calc_hash
- 45: 0000000000401163 0 NOTYPE LOCAL DEFAULT 11 initialize_regs
- 46: 0000000000401166 0 NOTYPE LOCAL DEFAULT 11 calc_hash_loop
- 47: 0000000000401170 0 NOTYPE LOCAL DEFAULT 11 calc_done
- 48: 0000000000401178 0 NOTYPE LOCAL DEFAULT 11 found_hash
- 49: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
- 50: 00000000004020cc 0 OBJECT LOCAL DEFAULT 15 __FRAME_END__
- 51: 0000000000000000 0 FILE LOCAL DEFAULT ABS
- 52: 0000000000403e10 0 NOTYPE LOCAL DEFAULT 16 __init_array_end
- 53: 0000000000403e18 0 OBJECT LOCAL DEFAULT 18 _DYNAMIC
- 54: 0000000000403e08 0 NOTYPE LOCAL DEFAULT 16 __init_array_start
- 55: 0000000000402004 0 NOTYPE LOCAL DEFAULT 14 __GNU_EH_FRAME_HDR
- 56: 0000000000403fc8 0 OBJECT LOCAL DEFAULT 19 _GLOBAL_OFFSET_TABLE_
- 57: 0000000000401220 5 FUNC GLOBAL DEFAULT 11 __libc_csu_fini
- 58: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTab
- 59: 0000000000404000 0 NOTYPE WEAK DEFAULT 20 data_start
- 60: 0000000000404010 0 NOTYPE GLOBAL DEFAULT 20 _edata
- 61: 0000000000401228 0 FUNC GLOBAL HIDDEN 12 _fini
- 62: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_
- 63: 0000000000404000 0 NOTYPE GLOBAL DEFAULT 20 __data_start
- 64: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
- 65: 0000000000404008 0 OBJECT GLOBAL HIDDEN 20 __dso_handle
- 66: 0000000000402000 4 OBJECT GLOBAL DEFAULT 13 _IO_stdin_used
- 67: 00000000004011b0 101 FUNC GLOBAL DEFAULT 11 __libc_csu_init
- 68: 0000000000404018 0 NOTYPE GLOBAL DEFAULT 21 _end
- 69: 0000000000401050 5 FUNC GLOBAL HIDDEN 11 _dl_relocate_static_pie
- 70: 0000000000401020 47 FUNC GLOBAL DEFAULT 11 _start
- 71: 0000000000404010 0 NOTYPE GLOBAL DEFAULT 21 __bss_start
- 72: 0000000000401106 0 NOTYPE GLOBAL DEFAULT 11 main
- 73: 0000000000404010 0 OBJECT GLOBAL HIDDEN 20 __TMC_END__
- 74: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable
- 75: 0000000000401000 0 FUNC GLOBAL HIDDEN 10 _init
- Version symbols section '.gnu.version' contains 5 entries:
- Addr: 000000000040040e Offset: 0x00040e Link: 5 (.dynsym)
- 000: 0 (*local*) 0 (*local*) 2 (GLIBC_2.2.5) 0 (*local*)
- 004: 0 (*local*)
- Version needs section '.gnu.version_r' contains 1 entry:
- Addr: 0x0000000000400418 Offset: 0x000418 Link: 6 (.dynstr)
- 000000: Version: 1 File: libc.so.6 Cnt: 1
- 0x0010: Name: GLIBC_2.2.5 Flags: none Version: 2
- Displaying notes found in: .note.ABI-tag
- Owner Data size Description
- GNU 0x00000010 NT_GNU_ABI_TAG (ABI version tag)
- OS: Linux, ABI: 3.2.0
- Displaying notes found in: .note.gnu.build-id
- Owner Data size Description
- GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring)
- Build ID: 369a3efa75ba4842e0bca0ad2a475e64950083e7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement