diff options
author | Matt Fleming <matt.fleming@intel.com> | 2012-04-19 15:30:59 +0100 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2012-04-23 10:54:14 +0100 |
commit | d19b4e287ce5508f05e8fddac6ca3063a63e3c74 (patch) | |
tree | 9e6899f8f06c62ee588dd642958a513697f6ac46 | |
parent | 75b62111f83dab433e901c1a7b0f05e058aa29de (diff) | |
download | efilinux-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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |