This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Handle undefined data symbols in shared libraries
ClosedPublic

Authored by sbc100 on Mar 12 2019, 12:36 PM.

Details

Summary

When linking shared libraries, we import a mutable wasm global
to represent the address of each undefined data symbol.

This is a step towards supporting dynamic linking and shared
libraries.

Event Timeline

sbc100 created this revision.Mar 12 2019, 12:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 12 2019, 12:36 PM
ruiu accepted this revision.Mar 12 2019, 12:47 PM

LGTM

lld/wasm/Symbols.h
263

nit: add a blank line between function definitions. (But if it fits in 80 cols, I believe the coding standard requires it to format in a single line like this:

bool hasGlobalIndex() const { return GlolbalIndex != INVALID_INDEX; }

)

This revision is now accepted and ready to land.Mar 12 2019, 12:47 PM
This revision was automatically updated to reflect the committed changes.