aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-readobj/llvm-readobj.cpp
diff options
context:
space:
mode:
authorAlex Bradbury <asb@lowrisc.org>2019-08-20 12:32:31 +0000
committerAlex Bradbury <asb@lowrisc.org>2019-08-20 12:32:31 +0000
commit7cb3cd34e8d7923438136ffb6f400aba958b82c1 (patch)
tree67f8378c73b95cc4279f31cad83cf501a299f97d /llvm/tools/llvm-readobj/llvm-readobj.cpp
parenta2e270fa703fa3807d66f4b73c119469912fd398 (diff)
downloadllvm-7cb3cd34e8d7923438136ffb6f400aba958b82c1.zip
llvm-7cb3cd34e8d7923438136ffb6f400aba958b82c1.tar.gz
llvm-7cb3cd34e8d7923438136ffb6f400aba958b82c1.tar.bz2
[RISCV] Implement getExprForFDESymbol to ensure RISCV_32_PCREL is used for the FDE location
Follow binutils in using RISCV_32_PCREL for the FDE initial location. As explained in the relevant binutils commit <https://github.com/riscv/riscv-binutils-gdb/commit/a6cbf936e3dce68114d28cdf60d510a3f78a6d40>, the ADD/SUB pair of relocations is problematic in the presence of linker relaxation. This patch has the same end goal as D64715 but includes test changes and avoids adding a new global VariantKind to MCExpr.h (preferring RISCVMCExpr VKs like the rest of the RISC-V backend). Differential Revision: https://reviews.llvm.org/D66419 llvm-svn: 369375
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions