From b6c666214b82472feba26ef016bcfcbca596fbea Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 27 Nov 2020 14:01:32 +0100 Subject: [PATCH] Add a debug .elf --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index c888e4e..6180a41 100644 --- a/Makefile +++ b/Makefile @@ -144,6 +144,7 @@ $(OUTPUT).elf: $(OFILES) @echo "linking ... $(TARGET).elf" $(Q)$(LD) -n -T $^ $(LDFLAGS) -o ../$(BUILD_DBG).elf $(LIBPATHS) $(LIBS) $(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: