[PATCH] D111171: [lld][WebAssembly] Create optional internal symbols only after LTO object as been added

Thomas Lively via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 5 12:32:16 PDT 2021


tlively added a comment.

How about if you create two LTO object files, one with -mattr=+atomics,+bulk-memory and one without, then link them together? In the combined bitcode, the presence of +atomics and +bulk-memory on the functions from the first object file will prevent that stripping from running, and you should get references to __tls_base from code originating in both object files.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111171/new/

https://reviews.llvm.org/D111171



More information about the llvm-commits mailing list