summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Garrett <mjg59@coreos.com>2015-04-14 17:10:57 -0700
committerPeter Jones <pjones@redhat.com>2015-04-15 13:30:52 -0400
commitd7cbd4e3927ea272c709e3f0fd28d53fcc074c34 (patch)
tree508bcfe83e9854678018f1aca101dd21f45d5a09
parentd51739a416400ad348d8a1c7e3886abce11fff1b (diff)
downloadefi-boot-shim-d7cbd4e3927ea272c709e3f0fd28d53fcc074c34.tar.gz
efi-boot-shim-d7cbd4e3927ea272c709e3f0fd28d53fcc074c34.zip
Explicitly request sysv-style ELF hash sections
We depend on there being a .hash section in the binary, and that's not the case on distributions that default to building with gnu-style ELF hashes. Explicitly request sysv-style hashes in order to avoid building broken binaries. Signed-off-by: Matthew Garrett <mjg59@coreos.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1808ca3a..dee3a858 100644
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,7 @@ ifneq ($(origin VENDOR_DBX_FILE), undefined)
CFLAGS += -DVENDOR_DBX_FILE=\"$(VENDOR_DBX_FILE)\"
endif
-LDFLAGS = -nostdlib -znocombreloc -T $(EFI_LDS) -shared -Bsymbolic -L$(EFI_PATH) -L$(LIB_PATH) -LCryptlib -LCryptlib/OpenSSL $(EFI_CRT_OBJS)
+LDFLAGS = --hash-style=sysv -nostdlib -znocombreloc -T $(EFI_LDS) -shared -Bsymbolic -L$(EFI_PATH) -L$(LIB_PATH) -LCryptlib -LCryptlib/OpenSSL $(EFI_CRT_OBJS)
VERSION = 0.8