llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

-g causes a "unsupported relocation of variable" error

Open llvmbot opened this issue 15 years ago • 5 comments

Bugzilla Link 9497
Resolution FIXED
Resolved on Jan 19, 2020 23:18
Version trunk
OS All
Attachments prep_cif.ll, t.i
Reporter LLVM Bugzilla Contributor
CC @MaskRay,@rengolin

Extended Description

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 t.i

llvmbot avatar Mar 17 '11 04:03 llvmbot

clang -g t.i -c # works

MaskRay avatar Jan 20 '20 07:01 MaskRay

Unassigning - is not ARM specific.

jmolloy avatar Apr 14 '12 17:04 jmolloy

Reassigning to ARM folks

rengolin avatar Apr 14 '12 16:04 rengolin

I'll have a look... Thanks! ;)

rengolin avatar Mar 17 '11 11:03 rengolin

This was caused by 127757 and fixed when it was reverted. At lest we have a testcase now :-)

llvmbot avatar Mar 17 '11 04:03 llvmbot