From 39ccbcfc0f99ae21669b7b97306d215b920c5100 Mon Sep 17 00:00:00 2001 From: Ash Date: Wed, 7 Nov 2018 10:42:49 +1100 Subject: [PATCH] make: Strip debug sections before elf2rpl --- share/wut.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/wut.mk b/share/wut.mk index c8b9675d..562af5ab 100644 --- a/share/wut.mk +++ b/share/wut.mk @@ -87,6 +87,10 @@ WUT_RPLELF_SUFFIX := .elf # Use CXX to link our initial output file, ready for elf2rpl @echo LD $(notdir $@)$(WUT_RPLELF_SUFFIX) $(Q)$(CXX) $^ $(LDFLAGS_PRE) $(LDFLAGS) $(LDFLAGS_POST) -o $@$(WUT_RPLELF_SUFFIX) + $(Q)if [ "$(WUT_NO_STRIP)" = "" ]; then \ + echo STRIP $(notdir $@)$(WUT_RPLELF_SUFFIX); \ + $(PREFIX)strip -g $@$(WUT_RPLELF_SUFFIX); \ + fi # Run elf2rpl on it @echo ELF2RPL $(notdir $@) $(Q)$(WUT_ELF2RPL) $(WUT_ELF2RPLFLAGS) $@$(WUT_RPLELF_SUFFIX) $@