system/efi: ensure we include all rela and rel sections

Change-Id: I44d8ee7a4c0a6b0cd5ed0fbc2201a1d63fd8dde6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3662
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
This commit is contained in:
Alexander von Gluck IV 2021-01-22 16:11:43 -06:00 committed by Alex von Gluck IV
parent b4d3d516c7
commit 6cd49df637

View File

@ -128,12 +128,12 @@ actions BuildEFILoader
if [ "$(OUTPUT_TARGET)" = "binary" ]; then
# no bfd support, fake efi Pe header
$(TARGET_OBJCOPY_$(TARGET_PACKAGING_ARCH)) -j .text -j .sdata -j .data \
-j .dynamic -j .dynsym -j .rel -j .rela -j .reloc -j .dynstr \
-j .dynamic -j .dynsym -j .rel* -j .rela* -j .reloc -j .dynstr \
--output-target=$(OUTPUT_TARGET) $(2) $(1)
else
# bfd supports pe + efi for arch
$(TARGET_OBJCOPY_$(TARGET_PACKAGING_ARCH)) -j .text -j .sdata -j .data \
-j .dynamic -j .dynsym -j .rel -j .rela -j .reloc -j .dynstr \
-j .dynamic -j .dynsym -j .rel* -j .rela* -j .reloc -j .dynstr \
--output-target=$(OUTPUT_TARGET) \
--subsystem=efi-app $(2) $(1)
fi