Skip to content

Instantly share code, notes, and snippets.

@shaded-enmity
Created September 24, 2015 19:35
Show Gist options
  • Save shaded-enmity/9d698a92deb0a505bb92 to your computer and use it in GitHub Desktop.
Save shaded-enmity/9d698a92deb0a505bb92 to your computer and use it in GitHub Desktop.
$ readelf -h nvidia-installer
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: 0x402d60
Start of program headers: 64 (bytes into file)
Start of section headers: 314184 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 8
Size of section headers: 64 (bytes)
Number of section headers: 27
Section header string table index: 26
$ gdb nvidia-installer
>>> disas 0x402d60
No function contains specified address.
>>> b *0x402d60
>>> disas
No function contains program counter for selected frame.
>>> si
...
>>> si
>>> x/i $rip-8
0x402d7f: mov edi,0x415270
>>> x/i $rip-5
0x402d85: call 0x402c90 <__libc_start_main@plt>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment