llvm-project/lld/ELF/Arch
Chih-Mao Chen 949570ce39 [RISCV] Fix range check for HI20/LO12/RVC_LUI relocations
The code previously specified a 32-bit range for R_RISCV_HI20 and
R_RISCV_LO12_[IS], however this is incorrect as the maximum offset on
RV64 that can be formed from the immediate of lui and the displacement
of an I-type or S-type instruction is -0x80000800 to 0x7ffff7ff. There
is also the same issue with a c.lui and LO12 pair, whose actual
addressable range should be -0x20800 to 0x1f7ff.

The tests will be included in the next patch that converts all RISC-V
tests to use llvm-mc instead of yaml2obj, as assembler support has
matured enough to write tests in them.

Differential Revision: https://reviews.llvm.org/D60414

llvm-svn: 357995
2019-04-09 11:39:23 +00:00
..
AArch64.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
AMDGPU.cpp Improve error message for unknown relocations. 2019-02-14 18:02:20 +00:00
ARM.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
AVR.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Hexagon.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MSP430.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Mips.cpp ELF: De-template ELFFileBase. NFCI. 2019-04-05 20:16:26 +00:00
MipsArchTree.cpp ELF: De-template ELFFileBase. NFCI. 2019-04-05 20:16:26 +00:00
PPC.cpp Create an instance of Target after reading all input files. NFC. 2019-03-28 17:38:53 +00:00
PPC64.cpp Create an instance of Target after reading all input files. NFC. 2019-03-28 17:38:53 +00:00
RISCV.cpp [RISCV] Fix range check for HI20/LO12/RVC_LUI relocations 2019-04-09 11:39:23 +00:00
SPARCV9.cpp Inline a trivial function. NFC. 2019-03-28 01:37:48 +00:00
X86.cpp Simplify. NFC. 2019-04-01 00:25:17 +00:00
X86_64.cpp Make a member function a non-member function. 2019-03-28 17:35:00 +00:00