[WebAssembly] Test that invalid symbol/relocation types generate errors
authorSam Clegg <sbc@chromium.org>
Thu, 21 Jan 2021 20:07:43 +0000 (12:07 -0800)
committerSam Clegg <sbc@chromium.org>
Thu, 21 Jan 2021 21:58:28 +0000 (13:58 -0800)
commitd75b3719828f3e0c9736476e50a08e5083f90c0b
treebf480935101088b32457444014447c139921d074
parentbd3a387ee76f58caa0d7901f3f84e9bb3d006f27
[WebAssembly] Test that invalid symbol/relocation types generate errors

See https://bugs.llvm.org/show_bug.cgi?id=48827

Differential Revision: https://reviews.llvm.org/D95163
llvm/lib/Object/WasmObjectFile.cpp
llvm/test/Object/Inputs/WASM/bad-reloc-type.wasm [new file with mode: 0644]
llvm/test/Object/Inputs/WASM/bad-symbol-type.wasm [new file with mode: 0644]
llvm/test/Object/wasm-bad-reloc-type.test [new file with mode: 0644]
llvm/test/Object/wasm-bad-symbol-type.test [new file with mode: 0644]