Makefile: Do not include symbol table in efilinux.efi
objcopy will leave the symbol table intact when creating an EFI
executable from the ELF shared object, which is unnecessary, but more
importantly the existence of the symbol table causes some EFI hashing
tools to fail when signing the executable for secure boot because the
symbol table is considered to be garbage.
Strip all symbol table and relocation information when creating the
EFI executable.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
diff --git a/Makefile b/Makefile
index 4c7e990..75936c6 100644
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@
%.efi: %.so
$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \
- -j .rela -j .reloc --target=$(FORMAT) $*.so $@
+ -j .rela -j .reloc -S --target=$(FORMAT) $*.so $@
OBJCOPY=objcopy