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:
@ -449,4 +449,11 @@
|
||||
#define WASM_ENABLE_STATIC_PGO 0
|
||||
#endif
|
||||
|
||||
/* Disable writing linear memory base address to GS segment register,
|
||||
by default only in linux x86-64, linear memory base addr is written
|
||||
to GS segment register before calling wasm/aot function. */
|
||||
#ifndef WASM_DISABLE_WRITE_GS_BASE
|
||||
#define WASM_DISABLE_WRITE_GS_BASE 0
|
||||
#endif
|
||||
|
||||
#endif /* end of _CONFIG_H_ */
|
||||
|
||||
Reference in New Issue
Block a user