This is an archive of the discontinued LLVM Phabricator instance.

[lld][WebAssembly] Delay the merging of section when dynamic linking
ClosedPublic

Authored by sbc100 on Feb 10 2021, 2:25 PM.

Details

Summary

With dynamic linking we have the current limitation that there can be
only a single active data segment (since we use __memory_base as the
load address and we can't do arithemtic in constant expresions).

This change delays the merging of active segments until a little later
in the linking process which means that the grouping of data by section,
and the magic start/end symbols work as expected under dynamic
linking.

Diff Detail

Event Timeline

sbc100 created this revision.Feb 10 2021, 2:25 PM
sbc100 requested review of this revision.Feb 10 2021, 2:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 10 2021, 2:25 PM
Harbormaster completed remote builds in B88721: Diff 322827.
dschuff accepted this revision.Feb 10 2021, 5:26 PM
This revision is now accepted and ready to land.Feb 10 2021, 5:26 PM
This revision was landed with ongoing or failed builds.Feb 11 2021, 10:54 AM
This revision was automatically updated to reflect the committed changes.