diff options
author | Sam Clegg <sbc@chromium.org> | 2021-09-11 02:38:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-11 09:38:01 +0000 |
commit | 5b90e0332253ee879d16fbc29d391ad75734ecf5 (patch) | |
tree | f05f7ef0be8418e4819ddd5eb50c81f617357a27 /test/lit/binary | |
parent | fc310a6dd6145d5d1470d8bf4cbb57c93f8785f1 (diff) | |
download | binaryen-5b90e0332253ee879d16fbc29d391ad75734ecf5.tar.gz binaryen-5b90e0332253ee879d16fbc29d391ad75734ecf5.tar.bz2 binaryen-5b90e0332253ee879d16fbc29d391ad75734ecf5.zip |
Support new dylink.0 custom section format (#4141)
See also:
spec change: https://github.com/WebAssembly/tool-conventions/pull/170
llvm change: https://reviews.llvm.org/D109595
wabt change: https://github.com/WebAssembly/wabt/pull/1707
emscripten change: https://github.com/emscripten-core/emscripten/pull/15019
Diffstat (limited to 'test/lit/binary')
-rw-r--r-- | test/lit/binary/dylink.test | 6 | ||||
-rwxr-xr-x | test/lit/binary/dylink.test.wasm | bin | 37 -> 40 bytes |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/lit/binary/dylink.test b/test/lit/binary/dylink.test index 72341c9ba..22cfb64a7 100644 --- a/test/lit/binary/dylink.test +++ b/test/lit/binary/dylink.test @@ -3,13 +3,13 @@ # `dylink.test.wasm` was generated using emscripten to build a side # module with two TLS exports (which adds extra information to the # dylink section) using: -# `emcc -s SIDE_MODULE side.c` +# `emcc -s USE_PTHREAD -s SIDE_MODULE side.c` # # side.c: # _Thread_local int foo = 10; # _Thread_local int bar = 11; # -# and then removing all sections except the dylink section using: -# `llvm-objcopy --only-section=dylink` +# and then removing all sections except the dylink.0 section using: +# `llvm-objcopy --only-section=dylink.0` RUN: wasm-opt -O1 %s.wasm -o %t.o RUN: cmp %s.wasm %t.o diff --git a/test/lit/binary/dylink.test.wasm b/test/lit/binary/dylink.test.wasm Binary files differindex 401028d96..02af85b7f 100755 --- a/test/lit/binary/dylink.test.wasm +++ b/test/lit/binary/dylink.test.wasm |