diff options
author | Ruslan Bukin <br@bsdpad.com> | 2018-03-23 15:11:22 +0000 |
---|---|---|
committer | Ruslan Bukin <br@bsdpad.com> | 2018-03-23 15:11:22 +0000 |
commit | b71404096c0bb0045f81f3131a803af16fa0ef94 (patch) | |
tree | eeee6695d9735c21c877657b625c0656a5c726e0 | |
parent | dcd6ee0893f784320db857cb66f8424a1d154d8d (diff) | |
download | pk-b71404096c0bb0045f81f3131a803af16fa0ef94.zip pk-b71404096c0bb0045f81f3131a803af16fa0ef94.tar.gz 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
-rw-r--r-- | bbl/bbl.mk.in | 2 |
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 |