kern: put rela in bss

NOTE: This saves ~0x4000 of space at the cost of crimes against the linker script.
This commit is contained in:
Michael Scire
2021-10-08 12:29:53 -07:00
parent fba962ef11
commit 960ba52a43
4 changed files with 25 additions and 19 deletions

View File

@@ -102,7 +102,7 @@ DEPENDS := $(OFILES:.o=.d)
# main targets
#---------------------------------------------------------------------------------
$(OUTPUT).bin : $(OUTPUT).elf
$(OBJCOPY) -S -O binary --set-section-flags .bss=alloc,load,contents $< $@
$(OBJCOPY) -S -O binary $< $@
@echo built ... $(notdir $@)
$(OUTPUT).elf : $(OFILES)