diff options
author | Keno Fischer <keno@alumni.harvard.edu> | 2019-06-26 00:52:42 +0000 |
---|---|---|
committer | Keno Fischer <keno@alumni.harvard.edu> | 2019-06-26 00:52:42 +0000 |
commit | cadcb9eb6131e30b38e67991fbf034e22c7c0bfd (patch) | |
tree | 45eba5441be38ddb5d86c63266d712efc2c78fe6 /llvm/include/llvm/BinaryFormat/Wasm.h | |
parent | 5242fbde5a2610bc72b09bfae03f916f1c78e53d (diff) | |
download | bcm5719-llvm-cadcb9eb6131e30b38e67991fbf034e22c7c0bfd.tar.gz bcm5719-llvm-cadcb9eb6131e30b38e67991fbf034e22c7c0bfd.zip |
[WebAssembly] Fix list of relocations with addends in lld
Summary:
The list of relocations with addend in lld was missing `R_WASM_MEMORY_ADDR_REL_SLEB`,
causing `wasm-ld` to generate corrupted output. This fixes that problem and while
we're at it pulls the list of such relocations into the Wasm.h header, to avoid
duplicating it in multiple places.
Reviewers: sbc100
Differential Revision: https://reviews.llvm.org/D63696
llvm-svn: 364367
Diffstat (limited to 'llvm/include/llvm/BinaryFormat/Wasm.h')
-rw-r--r-- | llvm/include/llvm/BinaryFormat/Wasm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm/BinaryFormat/Wasm.h b/llvm/include/llvm/BinaryFormat/Wasm.h index ee48a187f8e..0f327c188bf 100644 --- a/llvm/include/llvm/BinaryFormat/Wasm.h +++ b/llvm/include/llvm/BinaryFormat/Wasm.h @@ -364,6 +364,7 @@ inline bool operator!=(const WasmGlobalType &LHS, const WasmGlobalType &RHS) { std::string toString(WasmSymbolType type); std::string relocTypetoString(uint32_t type); +bool relocTypeHasAddend(uint32_t type); } // end namespace wasm } // end namespace llvm |