[lld] r364371 - [WebAssembly] Fix accidental omission from rLLD364367
Keno Fischer via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 25 18:26:53 PDT 2019
Author: kfischer
Date: Tue Jun 25 18:26:53 2019
New Revision: 364371
URL: http://llvm.org/viewvc/llvm-project?rev=364371&view=rev
Log:
[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.
Modified:
lld/trunk/wasm/InputFiles.cpp
Modified: lld/trunk/wasm/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/InputFiles.cpp?rev=364371&r1=364370&r2=364371&view=diff
==============================================================================
--- lld/trunk/wasm/InputFiles.cpp (original)
+++ lld/trunk/wasm/InputFiles.cpp Tue Jun 25 18:26:53 2019
@@ -94,6 +94,7 @@ uint32_t ObjFile::calcNewAddend(const Wa
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;
More information about the llvm-commits
mailing list