diff options
| author | Manuel Traut <manut@linutronix.de> | 2019-01-09 16:42:49 +0100 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2019-01-28 17:25:56 +0106 |
| commit | b990733af9d6a07c2130daeb5fd39c75f6804441 (patch) | |
| tree | 6c5f6486948ab3c1a9ec1a0db6d045d6bb1543c4 /schulung_tools/linking/hello/objdump.txt | |
| parent | 6f5bc54bec1449b1713504950cce078b0dac47c1 (diff) | |
add examples for dynamic linking / loading
one example by doing it manually with an ugly Makefile,
another one by using autotools.
Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'schulung_tools/linking/hello/objdump.txt')
| -rw-r--r-- | schulung_tools/linking/hello/objdump.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/schulung_tools/linking/hello/objdump.txt b/schulung_tools/linking/hello/objdump.txt new file mode 100644 index 0000000..9c77720 --- /dev/null +++ b/schulung_tools/linking/hello/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 |
