llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc
Sam Clegg 96ef4f307d Revert "[WebAssembly] call_indirect issues table number relocs"
This reverts commit 418df4a6ab.

This change broke emscripten tests, I believe because it started
generating 5-byte a wide table index in the call_indirect instruction.
Neither v8 nor wabt seem to be able to handle that.  The spec
currently says that this is single 0x0 byte and:

"In future versions of WebAssembly, the zero byte occurring in the
encoding of the call_indirectcall_indirect instruction may be used to
index additional tables."

So we need to revisit this change.  For backwards compat I guess
we need to guarantee that __indirect_function_table is always at
address zero.   We could also consider making this a single-byte
relocation with and assert if have more than 127 tables (for now).

Differential Revision: https://reviews.llvm.org/D95005
2021-01-19 15:06:07 -08:00
..
CMakeLists.txt llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
WebAssemblyAsmBackend.cpp [MC] Default MCAsmBackend::mayNeedRelaxation() to false 2020-08-02 22:13:59 -07:00
WebAssemblyFixupKinds.h [WebAssembly] Adding 64-bit versions of all load & store ops. 2020-06-15 08:31:56 -07:00
WebAssemblyInstPrinter.cpp Revert "[WebAssembly] call_indirect issues table number relocs" 2021-01-19 15:06:07 -08:00
WebAssemblyInstPrinter.h [WebAssembly] Update InstPrinter support for EH 2021-01-09 02:42:35 -08:00
WebAssemblyMCAsmInfo.cpp [WebAssembly] Added R_WASM_FUNCTION_OFFSET_I64 for use with DWARF DW_AT_low_pc 2020-11-13 09:32:31 -08:00
WebAssemblyMCAsmInfo.h
WebAssemblyMCCodeEmitter.cpp [WebAssembly] Implement ref.null 2020-11-03 10:46:23 -08:00
WebAssemblyMCTargetDesc.cpp [WebAssembly] Remove exnref and br_on_exn 2021-01-09 02:02:54 -08:00
WebAssemblyMCTargetDesc.h Revert "[WebAssembly] call_indirect issues table number relocs" 2021-01-19 15:06:07 -08:00
WebAssemblyTargetStreamer.cpp [WebAssembly] Added .tabletype to asm and multiple table support in obj files 2020-10-13 07:52:23 -07:00
WebAssemblyTargetStreamer.h [WebAssembly] Added .tabletype to asm and multiple table support in obj files 2020-10-13 07:52:23 -07:00
WebAssemblyWasmObjectWriter.cpp [WebAssembly] Added R_WASM_FUNCTION_OFFSET_I64 for use with DWARF DW_AT_low_pc 2020-11-13 09:32:31 -08:00