-g causes a "unsupported relocation of variable" error
| 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
clang -g t.i -c # works
Unassigning - is not ARM specific.
Reassigning to ARM folks
I'll have a look... Thanks! ;)
This was caused by 127757 and fixed when it was reverted. At lest we have a testcase now :-)