LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File fix-arm-linker-script.patch of Package gnu-efi (Project home:jejb1:UEFI)

arm: fix linker script for building efi binaries

On arm, the linker script is missing section collection for data and
bss.  This causes some symbols (notably static array symbols) not to
get relocated correctly and the resulting efi binary to crash.  Fix
this by correctly collecting all the data and bss sections.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Index: gnu-efi-3.0.3/gnuefi/elf_arm_efi.lds
--- gnu-efi-3.0.3.orig/gnuefi/elf_arm_efi.lds
+++ gnu-efi-3.0.3/gnuefi/elf_arm_efi.lds
@@ -22,7 +22,7 @@ SECTIONS
-   *(.data)
+   *(.data.*)
@@ -34,6 +34,7 @@ SECTIONS
+   *(.bss.*)
    . = ALIGN(16);
    _bss_end = .;