[lld] [WebAssembly] Generate a call to __wasm_apply_global_tls_relocs in __wasm_init_memory (PR #149832)

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 8 11:35:53 PDT 2025


sbc100 wrote:

Regarding `then __wasm_init_memory shouldn't initialize the TLS section` I think you probably correct yes.   

I now see how `__wasm_init_tls` and `__wasm_init_memory` are both doing this, but we should probably have only `__wasm_init_tls` do it.

https://github.com/llvm/llvm-project/pull/149832


More information about the llvm-commits mailing list