Skip to content

Commit

Permalink
base-nova: prevent linker warning
Browse files Browse the repository at this point in the history
ld: warning: hypervisor has a LOAD segment with RWX permissions

Issue #4827
  • Loading branch information
chelmuth committed May 30, 2023
1 parent 369af8d commit 9cb9060
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion repos/base-nova/src/kernel/nova/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ endif
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)
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_SCRIPT_STATIC = hypervisor.o

Expand Down

0 comments on commit 9cb9060

Please sign in to comment.