[llvm] [RISCV] Add support for vendor relocations on Xqci extensions (PR #135400)

Sam Elliott via llvm-commits llvm-commits at lists.llvm.org
Tue May 6 08:52:22 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:

@MaskRay Ping?

https://github.com/llvm/llvm-project/pull/135400


More information about the llvm-commits mailing list