From 85230524414b6d27664bf77c8584bfeced6c71cb Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 21 Apr 2021 23:41:59 +0200 Subject: add support to resolve all relocations in PLT & RELA tables; add global variable as example to libgreet.so --- 04_dynld_nostd/Makefile | 6 ------ 1 file changed, 6 deletions(-) (limited to '04_dynld_nostd/Makefile') diff --git a/04_dynld_nostd/Makefile b/04_dynld_nostd/Makefile index 8cd9d35..c1a472a 100644 --- a/04_dynld_nostd/Makefile +++ b/04_dynld_nostd/Makefile @@ -16,12 +16,6 @@ main: dynld.so main.c ../lib/libcommon.a -Wl,--hash-style=sysv \ libgreet.c - @if readelf -W -S libgreet.so | grep plt >& /dev/null; then \ - echo "ERROR: libgreet.so contains PLT while we don't support relocation calls in libgreet.so!"; \ - echo " All function calls in libgreet.so must be statically resolved!"; \ - exit 1; \ - fi - @# For now ew only add support for ELF hash tables (DT_HASH). @# Therefore we specify the `hash-style` below. gcc -o $@ \ -- cgit v1.2.3