summaryrefslogtreecommitdiff
path: root/schulung_tools/linking/objdump.txt
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2019-01-28 19:42:15 +0106
committerJohn Ogness <john.ogness@linutronix.de>2019-01-28 19:42:15 +0106
commit16c579d5fbb7ac62bf2f6f105d56d46e7409f74e (patch)
tree69cbd7fb122fe7d668385964c0f02dce59d61a02 /schulung_tools/linking/objdump.txt
parent9a7ca2ce530c59abcdccb8a730c53c6098b3da3a (diff)
linking: move text docs out of Makefile example
The text docs are general references showing how to build, link, and verify dynamic libraries and executables. They are not specific to any build system. Signed-off-by: John Ogness <john.ogness@linutronix.de>
Diffstat (limited to 'schulung_tools/linking/objdump.txt')
-rw-r--r--schulung_tools/linking/objdump.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/schulung_tools/linking/objdump.txt b/schulung_tools/linking/objdump.txt
new file mode 100644
index 0000000..9c77720
--- /dev/null
+++ b/schulung_tools/linking/objdump.txt
@@ -0,0 +1,11 @@
+# identify dependencies
+objdump -x some_elf_file | grep NEEDED
+
+# identify SONAME used by dynamic loader
+objdump -x some_lib | grep SONAME
+
+# identify runtime library search paths
+objdump -x some_elf_file | grep PATH
+
+# identify path of dynamic loader (search for "interp")
+objdump -s some_elf_file | less