diff options
author | Jay Foad <jay.foad@amd.com> | 2020-09-01 14:52:01 +0100 |
---|---|---|
committer | Jay Foad <jay.foad@amd.com> | 2020-09-02 10:55:55 +0100 |
commit | 4bdab2e86aba371dbad100dd3515ab9f05833719 (patch) | |
tree | a26d31b3f48064ce39172e93a81141b76216fb91 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | f13beac51be02cae21bce465206a920ecdca7566 (diff) | |
download | llvm-4bdab2e86aba371dbad100dd3515ab9f05833719.zip llvm-4bdab2e86aba371dbad100dd3515ab9f05833719.tar.gz llvm-4bdab2e86aba371dbad100dd3515ab9f05833719.tar.bz2 |
[AMDGPU] Fix offset for REL32_HI relocs
The addend in a REL32 reloc needs to be adjusted to account for the
offset from the PC value returned by the s_getpc instruction to the
point where the reloc is applied. This was being done correctly for
(GOTPC)REL32_LO but not for (GOTPC)REL32_HI. This will only make a
difference if the target symbol happens to get loaded almost exactly
a multiple of 4G away from the relocated instructions.
Differential Revision: https://reviews.llvm.org/D86938
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions