]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
readelf: Handle R_RISCV_SET32
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 12 Jan 2026 21:54:38 +0000 (22:54 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 13 Jan 2026 10:20:02 +0000 (11:20 +0100)
binutils/readelf.c

index 27cd854e9c26ceba3f04154f7bf8444f665370c7..d26e2bfa7b954e87da703f2b8da854c2641ce7dc 100644 (file)
@@ -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: