[lld] [wip][LLD] Support RISCV vendor-specific relocations. (PR #168497)

Sam Elliott via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 18 00:56:41 PST 2025


================
@@ -1725,6 +1738,47 @@ void RelocationBaseSection::computeRels() {
       return std::tie(a.r_sym, a.r_offset) < std::tie(b.r_sym, b.r_offset);
     });
   }
+  // Insert R_RISCV_VENDOR relocations very late, so that it doesn't interfere
+  // with relocation sorting above.
+  if (ctx.arg.emachine == EM_RISCV) {
----------------
lenary wrote:

Neat

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


More information about the llvm-commits mailing list