[lld] [wip][LLD] Support RISCV vendor-specific relocations. (PR #168497)
Sam Elliott via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 18 19:55:36 PST 2025
================
@@ -1533,3 +1540,21 @@ template <class ELFT> void RISCV::scanSection1(InputSectionBase &sec) {
void RISCV::scanSection(InputSectionBase &sec) {
invokeELFT(scanSection1, sec);
}
+
+namespace lld::elf {
+uint32_t getRISCVVendorRelType(StringRef rvVendor) {
----------------
lenary wrote:
Nit: This could maybe be something like the following for clarity, given it now doesn't return a type:
```suggestion
uint32_t getRISCVVendorRelMarker(StringRef rvVendor) {
```
https://github.com/llvm/llvm-project/pull/168497
More information about the llvm-commits
mailing list