diff options
| author | Keno Fischer <keno@alumni.harvard.edu> | 2019-06-26 01:26:53 +0000 |
|---|---|---|
| committer | Keno Fischer <keno@alumni.harvard.edu> | 2019-06-26 01:26:53 +0000 |
| commit | 5bb0dcd96ec1827820efe3e9e283d10d6c07cf29 (patch) | |
| tree | 1a400bb94c08bbf140068e49194a658e7d9964ba /lld/wasm/InputFiles.cpp | |
| parent | 06036dbc6e91d31946c57cf8a00c67b901fbba91 (diff) | |
| download | bcm5719-llvm-5bb0dcd96ec1827820efe3e9e283d10d6c07cf29.tar.gz bcm5719-llvm-5bb0dcd96ec1827820efe3e9e283d10d6c07cf29.zip | |
[WebAssembly] Fix accidental omission from rLLD364367
There was another place where handling for this relocation was missing
that was accidentally omitted from rLLD364367, causing the newly added
test to fail on the buildbots.
llvm-svn: 364371
Diffstat (limited to 'lld/wasm/InputFiles.cpp')
| -rw-r--r-- | lld/wasm/InputFiles.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/wasm/InputFiles.cpp b/lld/wasm/InputFiles.cpp index 956d0f5b605..c475a669f0d 100644 --- a/lld/wasm/InputFiles.cpp +++ b/lld/wasm/InputFiles.cpp @@ -94,6 +94,7 @@ uint32_t ObjFile::calcNewAddend(const WasmRelocation &Reloc) const { switch (Reloc.Type) { case R_WASM_MEMORY_ADDR_LEB: case R_WASM_MEMORY_ADDR_SLEB: + case R_WASM_MEMORY_ADDR_REL_SLEB: case R_WASM_MEMORY_ADDR_I32: case R_WASM_FUNCTION_OFFSET_I32: return Reloc.Addend; |

