From: Andreas Schwab Date: Mon, 12 Jan 2026 21:54:38 +0000 (+0100) Subject: readelf: Handle R_RISCV_SET32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc0c542c7c39d2d9560c8dbccc308df2ec17c0e7;p=thirdparty%2Fbinutils-gdb.git readelf: Handle R_RISCV_SET32 --- diff --git a/binutils/readelf.c b/binutils/readelf.c index 27cd854e9c2..d26e2bfa7b9 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -16000,7 +16000,8 @@ is_32bit_abs_reloc (Filedata * filedata, unsigned int reloc_type) case EM_TI_PRU: return reloc_type == 11; /* R_PRU_BFD_RELOC_32. */ case EM_RISCV: - return reloc_type == 1; /* R_RISCV_32. */ + return (reloc_type == 1 /* R_RISCV_32. */ + || reloc_type == 56); /* R_RISCV_SET32. */ case EM_RL78: return reloc_type == 1; /* R_RL78_DIR32. */ case EM_RX: