<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - COFF Global Variable failing"
href="https://llvm.org/bugs/show_bug.cgi?id=23372">23372</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>COFF Global Variable failing
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>OrcJIT
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mbsteixeira@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>I have the following problem:
Assertion failed: (Sec->Characteristics &
COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA
) == 0 && "BSS sections don't have contents!", file
C:\llvm_3.5\lib\Object\COFFO
bjectFile.cpp, line 996
It happens because the instruction below :
; ModuleID = 'totvs'
%errorStatus_TOTVS_ASM = type { i32, i32, i8*, i32 (i8*)* }
%VariantData_TOTVS_ASM = type { i32, %genData_TOTVS_ASM }
%genData_TOTVS_ASM = type <{ double }>
%error2_TOTVS_ASM = type { i32, i32 (i8*)*, i32 }
@0 = private unnamed_addr constant [10 x i8] c"\0AMSG : %s\00"
@errorStru_TOTVS_ASM = global %errorStatus_TOTVS_ASM zeroinitializer <== HERE
When I ask to compile the module and this module has a global variable, it
fails calling Check(SI->getContents(SectionData)); on RuntimeDyld.cpp, line
193.
I am using MSVC 2013 on MS Windows 7 Professional 64 bits .</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>