HomePhabricator

[WebAssembly] Fix list of relocations with addends in lld
Audit Requiredcadcb9eb6131

Authored by loladiro on Jun 25 2019, 5:52 PM.

Description

[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