This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Import __stack_pointer when building -pie binaries
ClosedPublic

Authored by sbc100 on Jul 10 2019, 10:39 AM.

Details

Summary

The -pie binary doesn't know that layout ahead of time so needs to
import the stack pointer from the embedder, just like we do already
for shared libraries.

This change is needed in order to address:
https://github.com/emscripten-core/emscripten/issues/8915

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Jul 10 2019, 10:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 10 2019, 10:39 AM
sbc100 edited the summary of this revision. (Show Details)Jul 10 2019, 10:39 AM
sbc100 added a reviewer: ruiu.
sbc100 updated this revision to Diff 209017.Jul 10 2019, 10:43 AM
sbc100 edited the summary of this revision. (Show Details)
  • fix typo
ruiu accepted this revision.Jul 10 2019, 11:52 PM

LGTM

This revision is now accepted and ready to land.Jul 10 2019, 11:52 PM
sbc100 updated this revision to Diff 209196.Jul 11 2019, 6:11 AM
  • rebase
This revision was automatically updated to reflect the committed changes.