From d5f485a4f6801f58cbb2bc9d8e80c955c79ff044 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Fri, 17 Dec 2021 16:06:06 +0000 Subject: R_AMD64_RELATIVE relocations implemented for EFI shim --- shim/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'shim/Makefile') diff --git a/shim/Makefile b/shim/Makefile index 51ec96c..42007b8 100644 --- a/shim/Makefile +++ b/shim/Makefile @@ -15,11 +15,11 @@ CFLAGS += -Wno-unused-const-variable -Wno-unused-function -fvisibility=hidden \ LIBDIRS += -L$(dir $(shell $(CC) -print-libgcc-file-name)) LDSCRIPT := shim.ld -LDFLAGS += -z max-page-size=4096 --export-dynamic +LDFLAGS += -z max-page-size=4096 --export-dynamic -pic --no-dynamic-linker LOADLIBES := -lgcc -OBJS := entry.o memcmp.o memcpy.o memmove.o memset.o -$(OBJS): CFLAGS += -fPIC -fPIE +OBJS := entry.o elf.o memcmp.o memcpy.o memmove.o memset.o +$(OBJS): CFLAGS += -fPIC DEPS := $(patsubst %.o,%.d,$(OBJS)) -- cgit v1.3.1-1-g115d