Skip to content

Commit 3ea299c

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 45f9050 commit 3ea299c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Target/RISCV/RISCVRelocationInternal.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,9 @@ enum : uint32_t {
6767
QUALCOMMVendorRelocationOffset =
6868
FirstQUALCOMMVendorRelocation - FirstNonstandardRelocation,
6969

70-
#define ELF_RISCV_NONSTANDARD_RELOC(vendor_symbol, name, value) \
71-
name = value + vendor_symbol##VendorRelocationOffset,
70+
#define ELF_RISCV_NONSTANDARD_RELOC_QUALCOMM(name, value) \
71+
name = value + QUALCOMMVendorRelocationOffset,
7272
#include "llvm/BinaryFormat/ELFRelocs/RISCV_nonstandard.def"
73-
#undef ELF_RISCV_NONSTANDARD_RELOC
7473

7574
// TODO: Internal Relaxation Relocation IDs for relaxations which require
7675
// calculating a value or overwriting a field not represented by a relocation.

0 commit comments

Comments
 (0)