aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-05-20 12:51:19 +0100
committerMatt Fleming <matt.fleming@intel.com>2013-05-20 12:51:19 +0100
commitf7404e7c9d217903f5f040ca53e3fe7ffd0523be (patch)
treedb274a2809ff0d426e060b230a0b929083a33548
parent2bd94fb6ed5f7f7472319cd6adaa25ccf9819230 (diff)
downloadsyslinux-f7404e7c9d217903f5f040ca53e3fe7ffd0523be.tar.gz
syslinux-f7404e7c9d217903f5f040ca53e3fe7ffd0523be.tar.xz
syslinux-f7404e7c9d217903f5f040ca53e3fe7ffd0523be.zip
efi: strip debug info from syslinux.so
There's no need to include debug information in the shared library, and subsequently syslinux.efi. Certainly not in releases. This commit reduces syslinux.efi from 3.0M to 2.4M. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r--efi/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/efi/Makefile b/efi/Makefile
index 272ce0d7..cb99f2a2 100644
--- a/efi/Makefile
+++ b/efi/Makefile
@@ -44,7 +44,7 @@ OBJS += $(objdir)/core/codepage.o
BTARGET = syslinux.efi
syslinux.so: $(OBJS) $(CORE_OBJS) $(LIB_OBJS)
- $(LD) $(LDFLAGS) -o $@ $^ -lgnuefi -lefi
+ $(LD) $(LDFLAGS) --strip-debug -o $@ $^ -lgnuefi -lefi
# We need to rename the .hash section because the EFI firmware
# linker really doesn't like it.