[LLVMbugs] [Bug 6067] New: undefined reference in generating native Linux x86-32 code

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jan 17 13:12:45 PST 2010


           Summary: undefined reference in generating native Linux x86-32
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: stein at ir.iit.edu
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=4068)
 --> (http://llvm.org/bugs/attachment.cgi?id=4068)
Test case

Attached is the BitCode from a simple test program I have.
The program is essentially:
  for(i=10; i>0; i--) {printf("%d\n", i);}

Using the head version of LLVM, if I do
  lli bad.bc
it works properly.
However, I tried it on Linux x86-32, and it fails to assemble
the generated .s file with:
  bad.bc:(.text+0x17): undefined reference to `__unnamed_0'

With a slightly older version of LLVM, I got an invalid
optimization that caused it to segfault right away.
However, it worked properly with optimizations turned off.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list