Index: src/llvm2ice.cpp |
diff --git a/src/llvm2ice.cpp b/src/llvm2ice.cpp |
index 702d0b1ee0f80992e0653961b02113df9c243088..a98c75d327cf75af67c07711e3c13237f7ec30f1 100644 |
--- a/src/llvm2ice.cpp |
+++ b/src/llvm2ice.cpp |
@@ -398,6 +398,7 @@ int main(int argc, char **argv) { |
if (UseELFWriter) { |
Ice::TimerMarker T1(Ice::TimerStack::TT_emit, &Ctx); |
+ Ctx.getObjectWriter()->setUndefinedSyms(Ctx.getConstantExternSyms()); |
Ctx.getObjectWriter()->writeNonUserSections(); |
} |
if (SubzeroTimingEnabled) |