scripts/Makefile.lib: efi: Preserve the .dynstr section as well

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>
This commit is contained in:
Sam Edwards 2025-03-15 15:18:11 -07:00 committed by Heinrich Schuchardt
parent 408a20e099
commit 7f2fe3dda4

View file

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