From 8b1b84fa12bec56e4a4066975c43dee6486bf591 Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 28 Apr 2021 23:51:53 +0200 Subject: 03/04: replace shlib undef linker flag --- 04_dynld_nostd/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '04_dynld_nostd/Makefile') diff --git a/04_dynld_nostd/Makefile b/04_dynld_nostd/Makefile index e4dceb1..f953e94 100644 --- a/04_dynld_nostd/Makefile +++ b/04_dynld_nostd/Makefile @@ -42,12 +42,12 @@ libgreet.so: libgreet.c # We assert that the dynamic linker doesn't contain any relocations as we # didn't implement support to resolve its own relocations. dynld.so: dynld.S dynld.c ../lib/libcommon.a - gcc -o $@ \ - $(COMMON_CFLAGS) \ - -fPIC -static-pie \ - -fvisibility=hidden \ - -Wl,--entry=dl_start \ - -Wl,--no-allow-shlib-undefined \ + gcc -o $@ \ + $(COMMON_CFLAGS) \ + -fPIC -static-pie \ + -fvisibility=hidden \ + -Wl,--entry=dl_start \ + -Wl,--no-undefined \ $^ @if ! readelf -r $@ | grep 'There are no relocations in this file' >& /dev/null; then \ -- cgit v1.2.3