[PATCH] D102937: [lld][WebAssembly] Fix for PIC output + TLS + non-shared-memory

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 21 11:49:37 PDT 2021


sbc100 added a comment.

In D102937#2774353 <https://reviews.llvm.org/D102937#2774353>, @dschuff wrote:

> Does avoiding combing data segments in shared-memory mode mean that there will have to be a lot more passive segment initializations run at load time, instead of just one before?

Not really.. most programs only have `.data` and `.rodata` and so they are mostly combined already.  The normal merging of `.data.*` etc is still performed either way.  That is controlled by `--no-/merge-data-segments` which is on by default.   This second level of merging was never about performance and we would not have it all if we could do arithmetic in the const exprs that place the segments.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102937



More information about the llvm-commits mailing list