[PATCH] D126950: [lld][WebAssembly] Retain data segments referenced via __start/__stop
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 3 19:47:07 PDT 2022
MaskRay added a comment.
> As well as ELF linker does, retain all data segments named X referenced through __start_X or __stop_X.
lld doesn't do this. This behavior requires `-z nostart-stop-gc`.
Not force retaining `X` allows fine-grained GC of metadata sections: https://maskray.me/blog/2021-01-31-metadata-sections-comdat-and-shf-link-order
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126950/new/
https://reviews.llvm.org/D126950
More information about the llvm-commits
mailing list