From b71404096c0bb0045f81f3131a803af16fa0ef94 Mon Sep 17 00:00:00 2001 From: Ruslan Bukin Date: Fri, 23 Mar 2018 15:11:22 +0000 Subject: Include .bss section to the binary so dtb_output() gets full size of payload, in result DTB will not overlap with bss and will not be zeroed by OS --- bbl/bbl.mk.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bbl/bbl.mk.in') diff --git a/bbl/bbl.mk.in b/bbl/bbl.mk.in index 2bc96e1..3e426d3 100644 --- a/bbl/bbl.mk.in +++ b/bbl/bbl.mk.in @@ -17,7 +17,7 @@ bbl_asm_srcs = \ payload.o: bbl_payload bbl_payload: $(BBL_PAYLOAD) - if $(READELF) -h $< 2> /dev/null > /dev/null; then $(OBJCOPY) -O binary $< $@; else cp $< $@; fi + if $(READELF) -h $< 2> /dev/null > /dev/null; then $(OBJCOPY) -O binary --set-section-flags .bss=alloc,load,contents $< $@; else cp $< $@; fi raw_logo.o: bbl_logo_file -- cgit v1.1