I would suggest using gdb as the simplest approach. You can even do it as a one-liner, like:
gdb -batch -ex 'file /bin/ls' -ex 'disassemble main'
More Related Contents:
- How can I examine contents of a data section of an ELF file on Linux?
- How to disassemble, modify and then reassemble a Linux executable?
- Why does objdump not show .bss, .shstratab, .symtab and .strtab sections?
- where/how does Apples GCC store DWARF inside an executable
- Linux Mach-O Disassembler
- How do you get assembler output from C/C++ source in gcc?
- What’s the difference of section and segment in ELF file format
- #if DEBUG vs. Conditional(“DEBUG”)
- Xcode 4.2 debug doesn’t symbolicate stack call
- What do R_X86_64_32S and R_X86_64_64 relocation mean?
- Can I change ‘rpath’ in an already compiled binary?
- Release generating .pdb files, why?
- How to make an executable ELF file in Linux using a hex editor?
- How to disassemble 16-bit x86 boot sector code in GDB with “x/i $pc”? It gets treated as 32-bit
- How to tell if a .NET application was compiled in DEBUG or RELEASE mode?
- Why does this MOVSS instruction use RIP-relative addressing? [duplicate]
- How to disassemble a binary executable in Linux to get the assembly code?
- “No such file or directory” error when executing a binary
- How to decompile an APK or DEX file on Android platform? [closed]
- Trying to debug Windows Store App from dump files
- How can I see the assembly code for a C++ program?
- Determine direct shared object dependencies of a Linux binary?
- Why does the PLT exist in addition to the GOT, instead of just using the GOT?
- bcrypt invalid elf header when running node app
- How to print the name of the symbols of ELF files like the nm?
- Visual Studio loading symbols
- Translation of machinecode into LLVM IR (disassembly / reassembly of X86_64. X86. ARM into LLVM bitcode)
- How does the CPU know how many bytes it should read for the next instruction, considering instructions have different lengths?
- Should I compile release builds with debug info as “full” or “pdb-only”?
- What is register %eiz?