[PATCH] D88506: [lld][WebAssembly] Allow exporting of mutable globals

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 29 11:11:36 PDT 2020


sbc100 created this revision.
Herald added subscribers: llvm-commits, ecnelises, sunfish, jgravelle-google, dschuff.
Herald added a project: LLVM.
sbc100 requested review of this revision.
Herald added a subscriber: aheejin.

In particular allow explict exporting of `__stack_pointer` but
exclud this from `--export-all` to avoid requiring the mutable
globals feature whenenve `--export-all` is used.

This uncovered a bug in populateTargetFeatures regarding checking
if the mutable-globals feature is allowed.

See: https://github.com/WebAssembly/binaryen/issues/2934


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88506

Files:
  lld/test/wasm/mutable-global-exports.s
  lld/test/wasm/mutable-globals.s
  lld/wasm/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88506.295060.patch
Type: text/x-patch
Size: 6026 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200929/a663fac0/attachment.bin>


More information about the llvm-commits mailing list