[syslinux:firmware] efi: strip debug info from syslinux.so

syslinux-bot for Matt Fleming matt.fleming at intel.com
Tue May 21 03:36:09 PDT 2013


Commit-ID:  f7404e7c9d217903f5f040ca53e3fe7ffd0523be
Gitweb:     http://www.syslinux.org/commit/f7404e7c9d217903f5f040ca53e3fe7ffd0523be
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Mon, 20 May 2013 12:51:19 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Mon, 20 May 2013 12:51:19 +0100

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 at intel.com>

---
 efi/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/efi/Makefile b/efi/Makefile
index 272ce0d..cb99f2a 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.


More information about the Syslinux-commits mailing list