summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Garrett <mjg59@coreos.com>2015-04-15 13:30:52 -0400
committerPeter Jones <pjones@redhat.com>2015-04-15 13:30:52 -0400
commitf3af1acfec86794ae2d78f63cab100503bfc9a7b (patch)
tree508bcfe83e9854678018f1aca101dd21f45d5a09
parent683b5643326f1ef2ba079b6201efad6f6e3279d1 (diff)
downloadefi-boot-shim-f3af1acfec86794ae2d78f63cab100503bfc9a7b.tar.gz
efi-boot-shim-f3af1acfec86794ae2d78f63cab100503bfc9a7b.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