-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
embed to C failed #2273
Comments
Hi, you can manually remove these lines: This is to write the linear memory base address to the x86 segment register GS so that it may speed up the linear memory access for AOT/JIT. I found that your os is |
thanks, it work when i remove code, i think will be more easy to resolve that add some note in os_writegsbase |
Yes, do you know whether there is some compiler macro related to |
sorry , i don't know that, i try it on ubuntu only a week... |
may vmware cause , i try ubuntu18, ubuntu20, get the same result |
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.
) Support to disable writing x86-64 GS segment register by `cmake -DWAMR_DISABLE_WRITE_GS_BASE=1` and update document. Issue was reported in bytecodealliance#2273.
os: vmware ubuntu
toolchain: wasi-sdk-20
wasm-app src:
command:
$CC test.c -o test.wasm -O0 -Wl,--export=add -Wl,--strip-all,--no-entry -nostdlib --target=wasm32-wasi -O0 -z stack-size=4096 -Wl,--initial-memory=65536 -Wl,--allow-undefined -Wl,--allow-undefined-file=${WAMR_DIR}/wamr-sdk/app/libc-builtin-sysroot/share/defined-symbols.txt
cmakelist flag:
c src:
exception :
when try to do , always exception on os_writegsbase, why, how to deal with it
The text was updated successfully, but these errors were encountered: