From daa7f5db794b77826762057264913b3a36a91615 Mon Sep 17 00:00:00 2001 From: fincs Date: Tue, 17 Dec 2019 23:24:21 +0100 Subject: [PATCH] kernel_ldr: Explicitly reserve space for bss section in output .bin --- mesosphere/kernel_ldr/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesosphere/kernel_ldr/Makefile b/mesosphere/kernel_ldr/Makefile index 5649eea12..42e8c77ea 100644 --- a/mesosphere/kernel_ldr/Makefile +++ b/mesosphere/kernel_ldr/Makefile @@ -89,7 +89,7 @@ DEPENDS := $(OFILES:.o=.d) all : $(OUTPUT).bin $(OUTPUT).bin : $(OUTPUT).elf - $(OBJCOPY) -S -O binary $< $@ + $(OBJCOPY) -S -O binary --set-section-flags .bss=alloc,load,contents $< $@ @echo built ... $(notdir $@) $(OUTPUT).elf : $(OFILES) ../../../libraries/libmesosphere/lib/libmesosphere.a