You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wasm-ld mis-strips live data segments referenced by start/stop symbols.
The linker should keep data segments if any symbol in an object file, which contains the data segment, is referenced and start/stop symbols for the segment are referenced.
For the following case, it works with ELF lld, but doesn't with wasm-ld due to the mis-stripping.
…ns (#5638)
Now wasm-ld strips data segments referenced through __start/__stop symbols
during GC, and it removes Swift metadata sections like swift5_protocols
We should add support of SHF_GNU_RETAIN-like flag for __attribute__((retain))
to LLVM and wasm-ld. For now, just disable section GC for Wasm target.
Context:
llvm/llvm-project#55839https://reviews.llvm.org/D126950#3558050
…ns (swiftlang#5638)
Now wasm-ld strips data segments referenced through __start/__stop symbols
during GC, and it removes Swift metadata sections like swift5_protocols
We should add support of SHF_GNU_RETAIN-like flag for __attribute__((retain))
to LLVM and wasm-ld. For now, just disable section GC for Wasm target.
Context:
llvm/llvm-project#55839https://reviews.llvm.org/D126950#3558050
wasm-ld mis-strips live data segments referenced by start/stop symbols.
The linker should keep data segments if any symbol in an object file, which contains the data segment, is referenced and start/stop symbols for the segment are referenced.
For the following case, it works with ELF lld, but doesn't with wasm-ld due to the mis-stripping.
Discussion with @sbc100: WebAssembly/wasi-libc#296
I'll make a patch to address this issue.
The text was updated successfully, but these errors were encountered: