diff options
| author | Alex Bradbury <asb@lowrisc.org> | 2019-08-20 12:32:31 +0000 |
|---|---|---|
| committer | Alex Bradbury <asb@lowrisc.org> | 2019-08-20 12:32:31 +0000 |
| commit | 7cb3cd34e8d7923438136ffb6f400aba958b82c1 (patch) | |
| tree | 67f8378c73b95cc4279f31cad83cf501a299f97d /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
| parent | a2e270fa703fa3807d66f4b73c119469912fd398 (diff) | |
| download | bcm5719-llvm-7cb3cd34e8d7923438136ffb6f400aba958b82c1.tar.gz bcm5719-llvm-7cb3cd34e8d7923438136ffb6f400aba958b82c1.zip | |
[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/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions

