diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2013-01-17 10:54:40 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-01-17 10:54:40 -0800 |
commit | 755ec12eac1030fc9dbffc9594386e07d0153b04 (patch) | |
tree | 48c1f5c736246a846a66f60108c4f8763d493bd9 /mk | |
parent | 8f2de46e618a39054fd6e86602391af8da5fcbac (diff) | |
download | syslinux-755ec12eac1030fc9dbffc9594386e07d0153b04.tar.gz syslinux-755ec12eac1030fc9dbffc9594386e07d0153b04.tar.xz syslinux-755ec12eac1030fc9dbffc9594386e07d0153b04.zip |
Always strip all the modules
Always strip the modules; they are too big unstripped. Specifically,
we generate unstripped *.elf files, and then convert them to
stripped *.c32 files.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/elf.mk | 6 | ||||
-rw-r--r-- | mk/lib.mk | 3 |
2 files changed, 8 insertions, 1 deletions
@@ -81,5 +81,9 @@ C_LNXLIBS = $(com32)/libutil/libutil_lnx.a \ %.lnx: %.lo $(LNXLIBS) $(C_LNXLIBS) $(CC) $(LNXCFLAGS) -o $@ $^ -%.c32: %.o $(C_LIBS) +.PRECIOUS: %.elf +%.elf: %.o $(C_LIBS) $(LD) $(LDFLAGS) -o $@ $^ + +%.c32: %.elf + $(OBJCOPY) --strip-debug --strip-unneeded $< $@ @@ -79,3 +79,6 @@ LDFLAGS = -m elf_i386 --hash-style=gnu -T $(com32)/lib/elf32.ld .c.ls: $(CC) $(MAKEDEPS) $(CFLAGS) $(SOFLAGS) -S -o $@ $< + +%.c32: %.elf + $(OBJCOPY) --strip-debug --strip-unneeded $< $@ |