--- gnuefi/Makefile.orig 2015-08-17 20:06:47 UTC +++ gnuefi/Makefile @@ -47,6 +47,8 @@ FILES = reloc_$(ARCH) OBJS = $(FILES:%=%.o) +CFLAGS += -fPIC + # on aarch64, avoid jump tables before all relocations have been processed reloc_aarch64.o: CFLAGS += -fno-jump-tables