-
-
Save knusbaum/43513d716657ae9ea8cf70814f21890b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ file myexe | |
myexe: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gdb myexe | |
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2 | |
Copyright (C) 2020 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. | |
Type "show copying" and "show warranty" for details. | |
This GDB was configured as "x86_64-linux-gnu". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>. | |
Find the GDB manual and other documentation resources online at: | |
<http://www.gnu.org/software/gdb/documentation/>. | |
For help, type "help". | |
Type "apropos word" to search for commands related to "word"... | |
"/myexe": not in executable format: bad value | |
(gdb) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ readelf -a myexe | |
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: 0x30000 | |
Start of program headers: 64 (bytes into file) | |
Start of section headers: 176 (bytes into file) | |
Flags: 0x0 | |
Size of this header: 64 (bytes) | |
Size of program headers: 56 (bytes) | |
Number of program headers: 2 | |
Size of section headers: 64 (bytes) | |
Number of section headers: 4 | |
Section header string table index: 3 | |
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 0000000000030000 00001000 | |
00000000000003be 0000000000000000 AX 0 0 4096 | |
[ 2] .data PROGBITS 0000000000031000 00002000 | |
000000000000000b 0000000000000000 WA 0 0 8 | |
[ 3] .shstrtab STRTAB 0000000000000000 00003000 | |
0000000000000017 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 | |
LOAD 0x0000000000001000 0x0000000000030000 0x0000000000030000 | |
0x00000000000003be 0x00000000000003be R E 0x1000 | |
LOAD 0x0000000000002000 0x0000000000031000 0x0000000000031000 | |
0x000000000000000b 0x000000000000000b RW 0x8 | |
Section to Segment mapping: | |
Segment Sections... | |
00 .text | |
01 .data | |
There is no dynamic section in this file. | |
There are no relocations in this file. | |
The decoding of unwind sections for machine type Advanced Micro Devices X86-64 is not currently supported. | |
No version information found in this file. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment