[LLVMbugs] [Bug 23372] New: COFF Global Variable failing

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 29 04:05:07 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23372

            Bug ID: 23372
           Summary: COFF Global Variable failing
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: OrcJIT
          Assignee: unassignedbugs at nondot.org
          Reporter: mbsteixeira at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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 .

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150429/610a11c9/attachment.html>


More information about the llvm-bugs mailing list