diff options
author | johannst <johannes.stoelp@gmail.com> | 2020-11-21 18:29:54 +0100 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2020-11-21 18:29:54 +0100 |
commit | 380465cc62d2a8cd59e4c69026e64f0f97a79e2f (patch) | |
tree | 52ad389b071ce03e14d2f55b7951e380d94dba59 /01_dynamic_linking/Makefile | |
parent | 8f487b87ac4b2172508ca95c1d4d7ce9793d83a5 (diff) | |
download | dynld-380465cc62d2a8cd59e4c69026e64f0f97a79e2f.tar.gz dynld-380465cc62d2a8cd59e4c69026e64f0f97a79e2f.zip |
rename 01
Diffstat (limited to '01_dynamic_linking/Makefile')
-rw-r--r-- | 01_dynamic_linking/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/01_dynamic_linking/Makefile b/01_dynamic_linking/Makefile new file mode 100644 index 0000000..efcc457 --- /dev/null +++ b/01_dynamic_linking/Makefile @@ -0,0 +1,13 @@ +inspect: build + readelf -W --sections main + readelf -W --dynamic main + readelf -W --program-headers main + readelf -W --string-dump .interp main + gdb -q --batch -ex 'starti' -ex 'bt' ./main + +build: libgreet.c main.c + gcc -o libgreet.so libgreet.c -shared -fPIC + gcc -o main main.c -lgreet -L. -Wl,--rpath=$(PWD) + +clean: + rm -f libgreet.so main |