This is an archive of the discontinued LLVM Phabricator instance.

[lld][WebAssembly] Fix memory size in dylink section for -pie exectuables
ClosedPublic

Authored by sbc100 on Oct 27 2020, 12:48 PM.

Details

Summary

This field to represents the amount of static data needed by
an dynamic library or executable it should not include things
like heap or stack areas, which in the case of -pie are
not determined until runtime (e.g. __stack_pointer is imported).

Diff Detail

Unit TestsFailed

Event Timeline

sbc100 created this revision.Oct 27 2020, 12:48 PM
sbc100 requested review of this revision.Oct 27 2020, 12:48 PM
kripken accepted this revision.Oct 27 2020, 3:26 PM
kripken added inline comments.
lld/wasm/Writer.cpp
299

memoryPtr - dataStart also appears on line 296, maybe worth a lccal variable? (I'm not sure of LLVM conventions there.)

This revision is now accepted and ready to land.Oct 27 2020, 3:26 PM
sbc100 updated this revision to Diff 301117.Oct 27 2020, 4:06 PM
sbc100 marked an inline comment as done.
  • feedback
This revision was landed with ongoing or failed builds.Oct 27 2020, 4:06 PM
This revision was automatically updated to reflect the committed changes.