Skip to content

Commit

Permalink
make: Strip debug sections before elf2rpl
Browse files Browse the repository at this point in the history
  • Loading branch information
ashquarky authored and exjam committed Nov 7, 2018
1 parent f87b3f9 commit 39ccbcf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions share/wut.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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) $@
Expand Down

0 comments on commit 39ccbcf

Please sign in to comment.