aboutsummaryrefslogtreecommitdiff
path: root/03_hello_dynld/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '03_hello_dynld/Makefile')
-rw-r--r--03_hello_dynld/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/03_hello_dynld/Makefile b/03_hello_dynld/Makefile
index 5764166..d8201ef 100644
--- a/03_hello_dynld/Makefile
+++ b/03_hello_dynld/Makefile
@@ -25,6 +25,11 @@ dynld.so: dynld.S dynld.c ../lib/libcommon.a
-Wl,--no-allow-shlib-undefined \
$^
+ @if ! readelf -r $@ | grep 'There are no relocations in this file' >& /dev/null; then \
+ echo "ERROR: $@ contains relocations while we don't support relocations in $@!"; \
+ exit 1; \
+ fi
+
../lib/libcommon.a:
make -C ../lib