[systemd-devel] [PATCH] gummiboot: build-sys: don't copy .eh_frame into final exe

Florian Albrechtskirchinger falbrechtskirchinger at gmail.com
Sat Mar 29 11:22:12 PDT 2014


Apparently some firmware implementations[1] won't run executables
containing an .eh_frame section, failing instead with "Error reported:
Unsupported" on the shell. There's also no obvious need for it, so
don't copy it.

[1] e.g., the one used on the ASRock C2750D4I
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index d224418..d004bdd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -144,7 +144,7 @@ $(efi_solib): $(efi_objects)
 
 $(efi_loadername): $(efi_solib)
 	$(AM_V_GEN) objcopy -j .text -j .sdata -j .data -j .dynamic \
-	  -j .dynsym -j .rel -j .rela -j .reloc -j .eh_frame \
+	  -j .dynsym -j .rel -j .rela -j .reloc \
 	  --target=efi-app-$(ARCH) $< $@
 
 # ------------------------------------------------------------------------------
-- 
1.9.1



More information about the systemd-devel mailing list