[LLVMdev] Linking two external linkage GlobalValues
Chris Lattner
sabre at nondot.org
Sat May 26 14:14:17 PDT 2007
On Fri, 25 May 2007, Anton Korobeynikov wrote:
>> My question: does this change break certain design decisions,
>> optimisations, ...?
> This is bug in the source code. You have two symbols with the same name
> in the different object files, which is definite redefinition. At least
> one of them should be declared with "extern".
Shouldn't these symbols get "common" linkage, aka llvm weak linkage?
Are you building the source with -fno-common? If not, it could be an llvm
bug.
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list