File relative.patch of Package binutils
From a00f5d64ac85da73afa27679c16fc96c08cf6736 Mon Sep 17 00:00:00 2001 From: Andreas Schwab <schwab@suse.de> Date: Thu, 18 Dec 2025 22:17:57 +0100 Subject: [PATCH] R_RISCV_RELATIVE --- bfd/elfnn-riscv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bfd/elfnn-riscv.c b/bfd/elfnn-riscv.c index 345b3bb96fd..04f61374a2a 100644 --- a/bfd/elfnn-riscv.c +++ b/bfd/elfnn-riscv.c @@ -3201,6 +3201,7 @@ riscv_elf_relocate_section (bfd *output_bfd, /* This symbol is local, or marked to become local. */ outrel.r_info = ELFNN_R_INFO (0, R_RISCV_RELATIVE); outrel.r_addend = relocation + rel->r_addend; + relocate = true; } sreloc = elf_section_data (input_section)->sreloc; -- 2.52.0