[lld] [lld][WebAssembly]: Restore non-pie dynamic-linking executable (PR #108146)

YAMAMOTO Takashi via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 11 20:17:56 PDT 2024


================
@@ -913,7 +913,8 @@ static void createSyntheticSymbols() {
   }
 
   if (ctx.isPic ||
-      config->unresolvedSymbols == UnresolvedPolicy::ImportDynamic) {
+      config->unresolvedSymbols == UnresolvedPolicy::ImportDynamic ||
+      !config->isStatic) {
----------------
yamt wrote:

> i guess it's simpler to defer the decision to createApplyDataRelocationsFunction.

i pushed a commit to implement it.

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


More information about the llvm-commits mailing list