diff --git a/src/stub/Makefile b/src/stub/Makefile index 1bd607d3..20d3fb4b 100644 --- a/src/stub/Makefile +++ b/src/stub/Makefile @@ -152,10 +152,11 @@ tc.default.objdump = $(call tc,m-objdump) tc.default.objstrip = $(call tc,objcopy) -R .comment -R .note -R .reginfo define tc.default.embed_objinfo - $(call tc,m-objdump) -D $2 | $(RTRIM) > $2.disasm + chmod a-x $2 $(call tc,m-objcopy) --strip-unneeded $2 $(call tc,m-objcopy) -R .text -R .data -R .bss $2 $(call tc,m-objcopy) -R .comment -R .note -R .reginfo $2 + $(call tc,m-objdump) -D $2 | $(RTRIM) > $2.disasm $(call tc,m-objdump) -trwh $2 | $(RTRIM) > $2.dump cat $2.dump >> $2 endef