aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-04-19 15:30:59 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-04-23 10:54:14 +0100
commitd19b4e287ce5508f05e8fddac6ca3063a63e3c74 (patch)
tree9e6899f8f06c62ee588dd642958a513697f6ac46
parent75b62111f83dab433e901c1a7b0f05e058aa29de (diff)
downloadefilinux-d19b4e287ce5508f05e8fddac6ca3063a63e3c74.tar.gz
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>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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