[lld] [lld][WebAssembly] Fix non-pie dynamic-linking executable (PR #108146)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 30 23:07:55 PDT 2024
================
@@ -146,7 +146,8 @@ void scanRelocations(InputChunk *chunk) {
if (ctx.isPic ||
(sym->isUndefined() &&
- config->unresolvedSymbols == UnresolvedPolicy::ImportDynamic)) {
+ config->unresolvedSymbols == UnresolvedPolicy::ImportDynamic) ||
+ sym->isShared()) {
----------------
sbc100 wrote:
Can you put this new clause on line 147 (e.g. `if (ctx.isPic || sym->isShared() ||`)
https://github.com/llvm/llvm-project/pull/108146
More information about the llvm-commits
mailing list