]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
scripts/Makefile.lib: efi: Preserve the .dynstr section as well
authorSam Edwards <cfsworks@gmail.com>
Sat, 15 Mar 2025 22:18:11 +0000 (15:18 -0700)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 17 Mar 2025 08:35:52 +0000 (09:35 +0100)
This section is required by .dynamic and llvm-objcopy will exit with a
fatal error if it is not also preserved in the output.

Signed-off-by: Sam Edwards <CFSworks@gmail.com>
scripts/Makefile.lib

index 18993435eaef4d191cebbe04e944eeb1bb0eecf0..275c308154b155a85c493144da56abd48fd4b44b 100644 (file)
@@ -513,8 +513,8 @@ $(obj)/%_efi.S: $(obj)/%.efi
        $(call cmd,S_efi)
 
 quiet_cmd_efi_objcopy = OBJCOPY $@
-cmd_efi_objcopy = $(OBJCOPY) -j .header -j .text -j .sdata -j .data -j \
-               .dynamic -j .dynsym  -j .rel* -j .rela* -j .reloc \
+cmd_efi_objcopy = $(OBJCOPY) -j .header -j .text -j .sdata -j .data \
+               -j .dynamic -j .dynstr  -j .dynsym -j .rel* -j .reloc \
                $(if $(EFI_TARGET),$(EFI_TARGET),-O binary) $^ $@
 
 $(obj)/%.efi: $(obj)/%_efi.so