mirror of
https://github.com/corda/corda.git
synced 2025-03-17 17:45:17 +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
|
||||
(wd=$$(pwd); \
|
||||
cd $(native-build); \
|
||||
$(objcopy) -I binary bootimage.bin \
|
||||
-O $(object-format) -B $(object-arch) "$${wd}/$(@)")
|
||||
$(objcopy) --rename-section=.data=.boot -I binary bootimage.bin \
|
||||
-O $(object-format) -B $(object-arch) "$${wd}/$(@).tmp"; \
|
||||
$(objcopy) --set-section-flags .boot=alloc,load,code "$${wd}/$(@).tmp" \
|
||||
"$${wd}/$(@)")
|
||||
endif
|
||||
|
||||
$(executable): \
|
||||
|
Loading…
x
Reference in New Issue
Block a user