Add cmake variable to disable writing gs register (#2284)

Support to disable writing x86-64 GS segment register by
  `cmake -DWAMR_DISABLE_WRITE_GS_BASE=1`
and update document. Issue was reported in #2273.
This commit is contained in:
Wenyong Huang
2023-06-13 10:26:25 +08:00
committed by GitHub
parent 7ec77598dd
commit fe830d805d
4 changed files with 21 additions and 1 deletions

View File

@ -392,3 +392,7 @@ if (WAMR_BUILD_STATIC_PGO EQUAL 1)
add_definitions (-DWASM_ENABLE_STATIC_PGO=1)
message (" AOT static PGO enabled")
endif ()
if (WAMR_DISABLE_WRITE_GS_BASE EQUAL 1)
add_definitions (-DWASM_DISABLE_WRITE_GS_BASE=1)
message (" Write linear memory base addr to x86 GS register disabled")
endif ()