base-nova: prevent linker warning

ld: warning: hypervisor has a LOAD segment with RWX permissions

Issue #4827
This commit is contained in:
Christian Helmuth 2023-05-08 16:12:52 +02:00
parent 369af8d8c3
commit 9cb9060794

View File

@ -45,7 +45,8 @@ endif
CC_CXX_WARN_STRICT = -Wextra -Weffc++ -Werror CC_CXX_WARN_STRICT = -Wextra -Weffc++ -Werror
git_version = $(shell cd $(NOVA_SRC_DIR) && (git rev-parse HEAD 2>/dev/null || echo 0) | cut -c1-7) git_version = $(shell cd $(NOVA_SRC_DIR) && (git rev-parse HEAD 2>/dev/null || echo 0) | cut -c1-7)
CXX_LINK_OPT = -Wl,--gc-sections -Wl,--warn-common -Wl,-static -Wl,-n -Wl,--defsym=GIT_VER=0x$(call git_version) CXX_LINK_OPT = -Wl,--gc-sections -Wl,--warn-common -Wl,-static -Wl,-n -Wl,--defsym=GIT_VER=0x$(call git_version) \
-Wl,--no-warn-rwx-segments
LD_TEXT_ADDR = # 0xc000000000 - when setting this 64bit compile fails because of relocation issues!! LD_TEXT_ADDR = # 0xc000000000 - when setting this 64bit compile fails because of relocation issues!!
LD_SCRIPT_STATIC = hypervisor.o LD_SCRIPT_STATIC = hypervisor.o