specify writable and executable section for boot image

This commit is contained in:
Joel Dice 2008-12-01 19:35:52 -07:00
parent eaf30eb909
commit 4a1dd3a8f7

View File

@ -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): \