WASI: Put the stack before globals

See https://github.com/ziglang/zig/issues/4496
This commit is contained in:
Frank Denis 2020-07-28 15:06:04 +02:00
parent 58ec9cc35b
commit d37afd6015

View File

@ -21,7 +21,7 @@ mkdir -p $PREFIX || exit 1
export CC="clang" export CC="clang"
export CFLAGS="-DED25519_NONDETERMINISTIC=1 --target=wasm32-wasi --sysroot=${WASI_LIBC} -O2" export CFLAGS="-DED25519_NONDETERMINISTIC=1 --target=wasm32-wasi --sysroot=${WASI_LIBC} -O2"
export LDFLAGS="-s -Wl,--no-threads" export LDFLAGS="-s -Wl,--no-threads -Wl,--stack-first"
export NM="llvm-nm" export NM="llvm-nm"
export AR="llvm-ar" export AR="llvm-ar"
export RANLIB="llvm-ranlib" export RANLIB="llvm-ranlib"