[LLVMdev] Clang on windows can't compile a code with a zeroinitializer array

Shaltiel, Alon ashaltiel at nds.com
Tue Apr 30 10:03:36 PDT 2013


When the .bc file contains an array as the following:
@.str = private global [7 x i8] zeroinitializer
"llc -march=x86" generates the following x86 assembly lines:
.data
.lcomm L_.str,7
And trying to compile it with clang generates an error: "fatal error LNK1143: invalid or corrupt file: no symbol for COMDAT section 0x3".

Is that fixable?

Thanks!
Alon

________________________________

This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster at nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes.
To protect the environment please do not print this e-mail unless necessary.

An NDS Group Limited company. www.nds.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130430/a6d7149e/attachment.html>


More information about the llvm-dev mailing list