From: Matthew Garrett Date: Wed, 15 Apr 2015 00:10:57 +0000 (-0700) Subject: Explicitly request sysv-style ELF hash sections X-Git-Tag: proxmox/15.7-1+pmx1~66^2~445 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=d7cbd4e3927ea272c709e3f0fd28d53fcc074c34;p=efi-boot-shim.git 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 --- diff --git a/Makefile b/Makefile index 1808ca3..dee3a85 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