Skip to content

Commit ff8d23d

Browse files
lenaryquic-seaswara
authored andcommitted
[RISCV] Fix ANDES Vendor Issue
Upstream landed llvm/llvm-project#137748 (commit a05393a879b2950fccca66ff0e1b6c70c39838e4) which added more vendor relocations, this time for ANDES. ELD does not support ANDES vendor relocations, so this just adds the offset member used by the ELF_RISCV_NONSTANDARD_RELOC macro until I can land the refactors to make each vendor's relocations opt-in. Signed-off-by: Sam Elliott <[email protected]>
1 parent 5771499 commit ff8d23d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Target/RISCV/RISCVRelocationInternal.h

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

77+
/* We don't support ANDES vendor relocations */
78+
ANDESVendorRelocationOffset = 0,
79+
7780
#define ELF_RISCV_NONSTANDARD_RELOC(vendor_symbol, name, value) \
7881
name = value + vendor_symbol##VendorRelocationOffset,
7982
#include "llvm/BinaryFormat/ELFRelocs/RISCV_nonstandard.def"

0 commit comments

Comments
 (0)