[WebAssembly] Support R_WASM_MEMORY_ADDR_TLS_SLEB64 for wasm64
authorWouter van Oortmerssen <aardappel@gmail.com>
Thu, 15 Jul 2021 20:24:28 +0000 (13:24 -0700)
committerWouter van Oortmerssen <aardappel@gmail.com>
Mon, 19 Jul 2021 17:22:43 +0000 (10:22 -0700)
commit670944fb20b226fc22fa993ab521125f9adbd30a
tree811bc8d5418ba5e8b3f60747c6472a9ce0485c06
parent50302feb1d2cce4a9fee38621cc7596b3c66ff02
[WebAssembly] Support R_WASM_MEMORY_ADDR_TLS_SLEB64 for wasm64

Also fixed TLS tests swapping addr & value in store op
Differential Revision: https://reviews.llvm.org/D106096
lld/wasm/InputChunks.cpp
lld/wasm/InputFiles.cpp
lld/wasm/Relocations.cpp
llvm/include/llvm/BinaryFormat/WasmRelocs.def
llvm/lib/BinaryFormat/Wasm.cpp
llvm/lib/MC/WasmObjectWriter.cpp
llvm/lib/Object/WasmObjectFile.cpp
llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp
llvm/test/MC/WebAssembly/tls.s
llvm/test/MC/WebAssembly/tls64.s [new file with mode: 0644]