File fix-arm-linker-script.patch of Package gnu-efi

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 <>
Index: gnu-efi-3.0.3/gnuefi/
--- gnu-efi-3.0.3.orig/gnuefi/
+++ gnu-efi-3.0.3/gnuefi/
@@ -22,7 +22,7 @@ SECTIONS
-   *(.data)
+   *(.data.*)
@@ -34,6 +34,7 @@ SECTIONS
+   *(.bss.*)
    . = ALIGN(16);
    _bss_end = .;
openSUSE Build Service is sponsored by