Skip to content

Instantly share code, notes, and snippets.

@seisvelas
Created November 30, 2018 02:25
Show Gist options
  • Save seisvelas/45fd7aa0557a9b64256d9e54882bcce5 to your computer and use it in GitHub Desktop.
Save seisvelas/45fd7aa0557a9b64256d9e54882bcce5 to your computer and use it in GitHub Desktop.
Output of readelf -a love_asm
hc015@HC015:~$ readelf -e love_asm
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: 0x400083
Start of program headers: 64 (bytes into file)
Start of section headers: 416 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 1
Size of section headers: 64 (bytes)
Number of section headers: 5
Section header string table index: 2
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 0000000000400078 00000078
0000000000000017 0000000000000000 AX 0 0 1
[ 2] .shstrtab STRTAB 0000000000000000 00000179
0000000000000021 0000000000000000 0 0 1
[ 3] .symtab SYMTAB 0000000000000000 00000090
00000000000000c0 0000000000000018 4 4 8
[ 4] .strtab STRTAB 0000000000000000 00000150
0000000000000029 0000000000000000 0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings), l (large)
I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown)
O (extra OS processing required) o (OS specific), p (processor specific)
Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flags Align
LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000
0x000000000000008f 0x000000000000008f R E 200000
Section to Segment mapping:
Segment Sections...
00 .text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment