Skip to content

Commit a158fa9

Browse files
committed
[RISCV] Use New Nonstandard Relocation Macro
This updates the relocation macros to match the refactor in llvm/llvm-project#138226. This should avoid breaking eld when other vendors upstream their own vendor relocations. Signed-off-by: Sam Elliott <[email protected]>
1 parent ff8d23d commit a158fa9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/Target/RISCV/RISCVRelocationInternal.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,9 @@ enum : uint32_t {
7474
QUALCOMMVendorRelocationOffset =
7575
FirstQUALCOMMVendorRelocation - FirstNonstandardRelocation,
7676

77-
/* We don't support ANDES vendor relocations */
78-
ANDESVendorRelocationOffset = 0,
79-
80-
#define ELF_RISCV_NONSTANDARD_RELOC(vendor_symbol, name, value) \
81-
name = value + vendor_symbol##VendorRelocationOffset,
77+
#define ELF_RISCV_NONSTANDARD_RELOC_QUALCOMM(name, value) \
78+
name = value + QUALCOMMVendorRelocationOffset,
8279
#include "llvm/BinaryFormat/ELFRelocs/RISCV_nonstandard.def"
83-
#undef ELF_RISCV_NONSTANDARD_RELOC
8480
};
8581
} // namespace internal
8682
} // namespace riscv

0 commit comments

Comments
 (0)