0005-gnu-efi-version-compatibility.patch 879 B

1234567891011121314151617181920212223242526
  1. From: Lukas Schwaighofer <lukas@schwaighofer.name>
  2. Date: Mon, 3 Dec 2018 22:45:44 +0100
  3. Subject: Fix compatibility with new gnu-efi version
  4. Allow multiple definitions when linking the syslinux binary so the
  5. memset and memcpy symbols which are included by gnu-efi since 3.0.8 are
  6. ignored (we still use the definitions from syslinux) but linking
  7. succeeds.
  8. ---
  9. efi/Makefile | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/efi/Makefile b/efi/Makefile
  12. index f4501e7..0d1a673 100644
  13. --- a/efi/Makefile
  14. +++ b/efi/Makefile
  15. @@ -71,7 +71,7 @@ $(OBJS): | $(OBJ)/$(ARCH)
  16. BTARGET = syslinux.efi
  17. syslinux.so: $(OBJS) $(CORE_OBJS) $(LIB_OBJS)
  18. - $(LD) $(LDFLAGS) --strip-debug -o $@ $^ -lgnuefi -lefi
  19. + $(LD) $(LDFLAGS) -zmuldefs --strip-debug -o $@ $^ -lgnuefi -lefi
  20. # We need to rename the .hash section because the EFI firmware
  21. # linker really doesn't like it.