Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop using
--gc-sections
for Wasm target to protect metadata sectio…
…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#55839 https://reviews.llvm.org/D126950#3558050
- Loading branch information