From a0a777e1aa46efb9ba569592a429b580caf4efcc Mon Sep 17 00:00:00 2001 From: Siu Kwan Lam Date: Thu, 10 Jan 2013 16:58:50 -0600 Subject: [PATCH] llvm_cbuilder: global string should use LINKONCE_ODR --- llvm_cbuilder/builder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm_cbuilder/builder.py b/llvm_cbuilder/builder.py index 45e58d1..6aa5e1d 100644 --- a/llvm_cbuilder/builder.py +++ b/llvm_cbuilder/builder.py @@ -494,6 +494,7 @@ class CBuilder(object): # new constant string globalstr = mod.add_global_variable(content.type, name=name) globalstr.initializer = content + globalstr.linkage = lc.LINKAGE_LINKONCE_ODR globalstr.global_constant = True else: # compare existing content