[LLVMbugs] [Bug 9497] New: -g causes a "unsupported relocation of variable" error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 16 19:35:33 PDT 2011


           Summary: -g causes a "unsupported relocation of variable" error
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu

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

With the attached file:

~/llvm/build-fast/Release/bin/llc prep_cif.ll  -o foo.o -filetype=obj
LLVM ERROR: unsupported relocation of variable 'Ltmp14'

It was produced from the included .i with

clang -cc1 -triple i386-apple-darwin10.0.0 -emit-llvm -disable-free
-disable-llvm-verifier -main-file-name prep_cif.c -pic-level 1
-mdisable-fp-elim -masm-verbose -target-cpu yonah -target-linker-version 123.2 
-g -resource-dir /Users/espindola/llvm/build-fast/Release/bin/../lib/clang/3.0
-O2 -Wall -ferror-limit 19 -fmessage-length 201 -stack-protector 1 -fblocks
-fexceptions -fno-common -fdiagnostics-show-option -o prep_cif.ll -x cpp-output

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