[lld][WebAssembly] Add `--table-base` setting
commit93adcb770b99351b18553089c164fe3ef2119699
authorSam Clegg <sbc@chromium.org>
Fri, 25 Aug 2023 20:56:16 +0000 (25 13:56 -0700)
committerSam Clegg <sbc@chromium.org>
Fri, 25 Aug 2023 23:10:38 +0000 (25 16:10 -0700)
tree319630abb30f9333decf0845f7890f92de0d1ec1
parentf66e4bd67adf0b0aaecd94154c38f02253bf7190
[lld][WebAssembly] Add `--table-base` setting

This is similar to `--global-base` but determines where to place the
table segments rather than that data segments.

See https://github.com/emscripten-core/emscripten/issues/20097

Differential Revision: https://reviews.llvm.org/D158892
lld/test/wasm/table-base.s [new file with mode: 0644]
lld/wasm/Driver.cpp
lld/wasm/Options.td
lld/wasm/Writer.cpp