aboutsummaryrefslogtreecommitdiffhomepage
path: root/explore-elf.txt
diff options
context:
space:
mode:
Diffstat (limited to 'explore-elf.txt')
-rw-r--r--explore-elf.txt51
1 files changed, 51 insertions, 0 deletions
diff --git a/explore-elf.txt b/explore-elf.txt
new file mode 100644
index 0000000..d5bde46
--- /dev/null
+++ b/explore-elf.txt
@@ -0,0 +1,51 @@
+.:: Explore Elf ::.
+--------------------------------------------------------------------------------
+
+# toc
+------
+ |readelf|
+ |objdump|
+ |nm|
+ |c++filt|
+
+# readelf(1) *readelf*
+=============
+ args:
+ --wide dont break output at 80 chars
+ -h print ELF header
+ -S print sections headers
+ -l print program headers
+ -d print dynamic section
+ -s print symbol table
+
+# objdump(1) *objdump*
+=============
+ args:
+ -M intel use intil syntax
+ -d disassemble text section
+ -D disassemble all sections
+ -S mix disassembly with source code
+ -C demangle
+ -j <section> display info for section
+ --[no-]show-raw-insn [dont] show object code next to disassembly
+
+ ## disassemble .plt section
+ objdump -j .plt -d <elf_file>
+
+# nm(1) *nm*
+========
+ args:
+ -C demangle
+ -u undefined only
+
+# c++filt(1) *c++filt*
+=============
+ ## demangle symbol
+ c++-filt <symbol_str>
+
+ ## demangle stream
+ nm <elf_file> | c++filt
+
+--------------------------------------------------------------------------------
+vim:sts=2:et:tw=80:cc=80:fo+=t:ft=help
+