[llvm] [RISCV] Vendor Relocations for Xqci extension (PR #135400)
Sam Elliott via llvm-commits
llvm-commits at lists.llvm.org
Tue May 27 21:55:18 PDT 2025
================
@@ -1435,6 +1435,21 @@ void ELFObjectWriter::recordRelocation(MCAssembler &Asm,
: C;
FixedValue = usesRela(TO, FixupSection) ? 0 : Addend;
+ // Some RISC-V relocations need a marker relocation that appears before the
+ // relocation in question.
+ unsigned PreRelocType;
+ MCSymbol *PreRelocSymbol;
+ uint64_t PreRelocAddend;
+ if (Backend.fixupNeedsMarkerELFRelocation(Asm, *Fragment, Fixup, PreRelocType,
----------------
lenary wrote:
Now done. Thanks for the cleanup, it is indeed a much easier structure to work with for vendor relocations.
https://github.com/llvm/llvm-project/pull/135400
More information about the llvm-commits
mailing list