[LLVMdev] Any equivalent of --allow-multiple-definitions in llvm-ld?

Talin viridia at gmail.com
Mon Jul 14 14:48:43 PDT 2014


I'm working with a C++ code generator that produces multiple instances of
the same definition (specifically, it generates explicit instantiations of
the same template in multiple output source files). With the GNU ld, I'm
able to link successfully using the --allow-multiple-definitions flag;
however this flag is not supported in llvm-ld.

Is there any way I can either convince llvm-ld to accept this without
producing an error, or alternatively is there any way in C++ that I can
trick the compiler into making these definitions linkonce?

-- 
-- Talin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140714/0dbde385/attachment.html>


More information about the llvm-dev mailing list