mirror of
https://github.com/corda/corda.git
synced 2025-05-02 16:53:22 +00:00
specify writable and executable section for boot image
This commit is contained in:
parent
eaf30eb909
commit
4a1dd3a8f7
6
makefile
6
makefile
@ -432,8 +432,10 @@ ifeq ($(platform),darwin)
|
|||||||
else
|
else
|
||||||
(wd=$$(pwd); \
|
(wd=$$(pwd); \
|
||||||
cd $(native-build); \
|
cd $(native-build); \
|
||||||
$(objcopy) -I binary bootimage.bin \
|
$(objcopy) --rename-section=.data=.boot -I binary bootimage.bin \
|
||||||
-O $(object-format) -B $(object-arch) "$${wd}/$(@)")
|
-O $(object-format) -B $(object-arch) "$${wd}/$(@).tmp"; \
|
||||||
|
$(objcopy) --set-section-flags .boot=alloc,load,code "$${wd}/$(@).tmp" \
|
||||||
|
"$${wd}/$(@)")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(executable): \
|
$(executable): \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user