llvm-project/llvm/lib/Target/RISCV/MCTargetDesc
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
..
CMakeLists.txt
RISCVAsmBackend.cpp [llvm] Use std::size instead of llvm::array_lengthof 2022-09-08 09:01:53 -06:00
RISCVAsmBackend.h [RISCV] Generate correct ELF EFlags when .ll file has target-abi attribute 2022-03-24 00:48:52 +08:00
RISCVBaseInfo.cpp [RISCV] Change how mtune aliases are implemented. 2022-08-18 16:22:25 -07:00
RISCVBaseInfo.h [RISCV] Verify merge operand is tied properly 2022-09-15 13:06:52 -07:00
RISCVELFObjectWriter.cpp [RISCV] Assemble `call foo` to R_RISCV_CALL_PLT 2022-09-13 18:47:55 -07:00
RISCVELFStreamer.cpp RISCV: adjust relocation emission 2022-09-30 15:28:48 +00:00
RISCVELFStreamer.h [RISCV] Fix state persistence bugs (PR55548) 2022-05-26 16:09:00 +08:00
RISCVFixupKinds.h [RISCV][NFC] Use nested namespace definations. 2022-08-13 09:56:59 +08:00
RISCVInstPrinter.cpp [RISCV] Change GPRMemAtomic to GPRMemZeroOffset for general usage 2022-02-28 14:02:43 +08:00
RISCVInstPrinter.h [RISCV] Change GPRMemAtomic to GPRMemZeroOffset for general usage 2022-02-28 14:02:43 +08:00
RISCVMCAsmInfo.cpp
RISCVMCAsmInfo.h
RISCVMCCodeEmitter.cpp [CodeGen] Move instruction predicate verification to emitInstruction 2022-07-14 09:33:28 +01:00
RISCVMCExpr.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
RISCVMCExpr.h
RISCVMCObjectFileInfo.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
RISCVMCObjectFileInfo.h
RISCVMCTargetDesc.cpp [CodeGen] Move instruction predicate verification to emitInstruction 2022-07-14 09:33:28 +01:00
RISCVMCTargetDesc.h [CodeGen] Move instruction predicate verification to emitInstruction 2022-07-14 09:33:28 +01:00
RISCVMatInt.cpp [RISCV][NFC] Use nested namespace definations. 2022-08-13 09:56:59 +08:00
RISCVMatInt.h [RISCV] Add an operand kind to the opcode/imm returned from RISCVMatInt. 2022-05-24 14:56:29 -07:00
RISCVTargetStreamer.cpp [RISCV] Fix state persistence bugs (PR55548) 2022-05-26 16:09:00 +08:00
RISCVTargetStreamer.h [RISCV] Fix state persistence bugs (PR55548) 2022-05-26 16:09:00 +08:00