llvm-project/llvm/test/MC
Saleem Abdulrasool 519a73111b RISCV: adjust relocation emission
Simplify and make the pair-wise relocation more precise.  If either of
the symbol references are textual, the relocation must be delayed.  If
the difference is across sections, delay it as well which partially
matches the behaviour of gas.  We unfortunately do not handle the case
where the difference references a symbol that is not yet defined.  In
such a case, we simply fail to resolve the difference, which should
hopefully not be too onerous (particularly since no other target
supports cross-section references and it is not clear if this was
intentional on the part of RISCV).

Differential Revision: https://reviews.llvm.org/D132262
Reviewed By: @MaskRay
2022-09-30 15:28:48 +00:00
..
AArch64 [ARM64EC 2/?] Add target triple, and allow targeting it. 2022-09-05 12:27:10 -07:00
AMDGPU [AMDGPU][MC][GFX11] Disable non-null src0 for s_waitcnt_*cnt 2022-09-29 19:56:03 +03:00
ARM [LLVM][ARM] Remove options for armv2, 2A, 3 and 3M 2022-09-08 09:49:48 +00:00
AVR [AVR] Fix useDeprecatedPositionallyEncodedOperands errors. 2022-09-25 17:55:09 -04:00
AsmParser [Object] Add ELF section type for offloading objects 2022-07-07 12:20:30 -04:00
BPF [BPF] Implement mod operation 2022-05-12 10:59:18 +08:00
COFF [MC] Avoid UAF in WinCOFFObjectWriter with weak symbols. 2022-07-16 13:24:08 +03:00
CSKY [CSKY] Add missing codegen pattern for 16-bit instruction 2022-03-29 16:05:30 +08:00
Disassembler [AMDGPU][MC][GFX11] Disable non-null src0 for s_waitcnt_*cnt 2022-09-29 19:56:03 +03:00
ELF [MC] Properly disable debug-frame test on AppleSilicon Mac 2022-09-29 16:21:12 -07:00
GOFF [SystemZ][z/OS] Implement detection and handling for XPLink Leaf procedures. 2022-07-17 14:30:33 -04:00
Hexagon [Hexagon] Duplex error: wrong branch hint 2022-01-07 12:04:01 -08:00
Lanai
LoongArch [LoongArch] Produce a R_LARCH_32_PCREL relocation 2022-09-29 09:04:44 +08:00
M68k [M68k] Add MC support for link/unlk 2022-08-08 11:00:11 +08:00
MSP430
MachO [MC][re-land] Omit DWARF unwind info if compact unwind is present where eligible 2022-06-12 17:24:19 -04:00
Mips [MC][Mips] Support .reloc *, BFD_RELOC_{NONE,16,32,64}, * 2022-06-30 16:39:23 -07:00
PowerPC [llvm-objdump] Default to --mcpu=future for PPC64 2022-06-30 11:30:35 -07:00
RISCV RISCV: adjust relocation emission 2022-09-30 15:28:48 +00:00
Sparc [SPARC][MC] Support more relocation types 2022-06-05 14:09:39 -04:00
SystemZ [SystemZ] Bugfix for symbolic displacements. 2022-05-22 17:41:36 +02:00
VE
WebAssembly [MC][WebAssembly] Allow accurate errors in doBeforeLabelEmit 2022-09-01 01:26:33 -07:00
X86 [X86][MC] Avoid emitting incorrect warning for complex FMUL 2022-07-28 13:58:34 +08:00
XCOFF