]> git.proxmox.com Git - efi-boot-shim.git/commitdiff
Explicitly request sysv-style ELF hash sections
authorMatthew Garrett <mjg59@coreos.com>
Wed, 15 Apr 2015 00:10:57 +0000 (17:10 -0700)
committerPeter Jones <pjones@redhat.com>
Wed, 15 Apr 2015 17:30:52 +0000 (13:30 -0400)
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>
Makefile

index 1808ca3a79aae01475ff16263c2c356729527e94..dee3a858e40a625736489472b6e794a65ba2ac09 100644 (file)
--- 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