HomePhabricator

Fix unsupported relocation type R_HEX_6_X' for symbol .rodata

Authored by ronl on Aug 13 2016, 4:41 PM.

Description

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.

llvm-svn: 278614

Details

Committed
ronlAug 13 2016, 4:41 PM
Parents
rG466a64e2987c: Revert "Fix bitcode auto-upgrade when using bitcode lazy loading"
Branches
Unknown
Tags
Unknown