aboutsummaryrefslogtreecommitdiff
path: root/tools/driver
diff options
context:
space:
mode:
Diffstat (limited to 'tools/driver')
-rw-r--r--tools/driver/EmbeddedRunner.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/driver/EmbeddedRunner.cc b/tools/driver/EmbeddedRunner.cc
index ca0a41c..d6d58db 100644
--- a/tools/driver/EmbeddedRunner.cc
+++ b/tools/driver/EmbeddedRunner.cc
@@ -157,6 +157,13 @@ public:
G.findExternalSymbolByName(G.intern("__ImageBase"));
if (!ImageBaseExt)
return Error::success();
+ // Platform graphs carry LLJIT-internal symbols; leave their
+ // own base alone or materialization sees it twice.
+ if (G.findDefinedSymbolByName(
+ G.intern("__lljit.platform_support_instance")) ||
+ G.findExternalSymbolByName(
+ G.intern("__lljit.platform_support_instance")))
+ return Error::success();
jitlink::Block *Low = nullptr;
for (auto &Sec : G.sections()) {
for (auto *B : Sec.blocks()) {