OSDN Git Service

Fix unsupported relocation type R_HEX_6_X' for symbol .rodata
authorRon Lieberman <ronl@codeaurora.org>
Sat, 13 Aug 2016 23:41:11 +0000 (23:41 +0000)
committerRon Lieberman <ronl@codeaurora.org>
Sat, 13 Aug 2016 23:41:11 +0000 (23:41 +0000)
commit26d2a2331452e299834cd8f1f0101c1e4aa3ed3c
treed2bbde3d7e4f1d51f1979452ff057062c274d548
parent4510860b03698661a2b07cc8074c7f7f600bb052
Fix unsupported relocation type R_HEX_6_X' for symbol .rodata

LowerTargetConstantPool is not properly setting the TargetFlag to indicate
desired relocation. Coding error, the offset parameter was omitted, so the
TargetFlag was used as the offset, and the TargetFlag defaulted to zero.

This only affects -fpic compilation, and only those items created in a
Constant Pool, for example a vector of constants. Halide ran into this issue.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278614 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonISelLowering.cpp
test/CodeGen/Hexagon/const-pool-tf.ll [new file with mode: 0644]