[Mlir-commits] [mlir] [MLIR][ExecutionEngine] Enable PIC option (PR #170995)

Tianqi Chen llvmlistbot at llvm.org
Sun Dec 7 04:55:23 PST 2025


================
@@ -807,6 +807,7 @@ def testDumpToObjectFile():
                 # because RTDyldObjectLinkingLayer::emit will try to resolve symbols before dumping
                 # (see the jitLinkForORC call at the bottom there).
                 shared_libs=[MLIR_C_RUNNER_UTILS],
+                enable_pic=True,
----------------
tqchen wrote:

that is correct, also even if running to make a shlib, linker will pass saying that it will create a `DT_TEXTREL` which is not desirable in practice

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


More information about the Mlir-commits mailing list