This is an archive of the discontinued LLVM Phabricator instance.

[lld][WebAssembly] Add `--table-base` setting
ClosedPublic

Authored by sbc100 on Aug 25 2023, 2:14 PM.

Details

Summary

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

Diff Detail

Event Timeline

sbc100 created this revision.Aug 25 2023, 2:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2023, 2:14 PM
Herald added subscribers: pmatos, asb, wingo and 3 others. · View Herald Transcript
sbc100 requested review of this revision.Aug 25 2023, 2:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2023, 2:14 PM
dschuff accepted this revision.Aug 25 2023, 3:05 PM

LGTM otherwise

lld/test/wasm/table-base.s
28

what is this global 0 for?

68

seems like maybe it's worth noting somehow that this line is the important one.

This revision is now accepted and ready to land.Aug 25 2023, 3:05 PM
sbc100 added inline comments.Aug 25 2023, 3:19 PM
lld/test/wasm/table-base.s
28

__stack_pointer

This revision was landed with ongoing or failed builds.Aug 25 2023, 4:11 PM
This revision was automatically updated to reflect the committed changes.