aboutsummaryrefslogtreecommitdiff
path: root/bbl
diff options
context:
space:
mode:
authorRuslan Bukin <br@bsdpad.com>2018-03-23 15:11:22 +0000
committerRuslan Bukin <br@bsdpad.com>2018-03-23 15:11:22 +0000
commitb71404096c0bb0045f81f3131a803af16fa0ef94 (patch)
treeeeee6695d9735c21c877657b625c0656a5c726e0 /bbl
parentdcd6ee0893f784320db857cb66f8424a1d154d8d (diff)
downloadriscv-pk-b71404096c0bb0045f81f3131a803af16fa0ef94.zip
riscv-pk-b71404096c0bb0045f81f3131a803af16fa0ef94.tar.gz
riscv-pk-b71404096c0bb0045f81f3131a803af16fa0ef94.tar.bz2
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
Diffstat (limited to 'bbl')
-rw-r--r--bbl/bbl.mk.in2
1 files changed, 1 insertions, 1 deletions
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