Add a debug .elf

This commit is contained in:
Maschell 2020-11-27 14:01:32 +01:00
parent ebe7c4b8ac
commit b6c666214b

View File

@ -144,6 +144,7 @@ $(OUTPUT).elf: $(OFILES)
@echo "linking ... $(TARGET).elf" @echo "linking ... $(TARGET).elf"
$(Q)$(LD) -n -T $^ $(LDFLAGS) -o ../$(BUILD_DBG).elf $(LIBPATHS) $(LIBS) $(Q)$(LD) -n -T $^ $(LDFLAGS) -o ../$(BUILD_DBG).elf $(LIBPATHS) $(LIBS)
$(Q)$(OBJCOPY) -S -R .comment -R .gnu.attributes ../$(BUILD_DBG).elf $@ $(Q)$(OBJCOPY) -S -R .comment -R .gnu.attributes ../$(BUILD_DBG).elf $@
$(Q)$(OBJCOPY) -O binary -R .comment -R .gnu.attributes ../$(BUILD_DBG).elf ../payload.bin
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
%.a: %.a: