[binutils-gdb] gas/SH: support BFD_RELOC_RVA in the PE/COFF case

Jan Beulich jbeulich@sourceware.org
Fri Oct 10 14:05:28 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=023d89bf4b2811b2465d199330c5ddf24b19755c

commit 023d89bf4b2811b2465d199330c5ddf24b19755c
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Oct 10 16:00:30 2025 +0200

    gas/SH: support BFD_RELOC_RVA in the PE/COFF case
    
    This is just so the target won't need excluding in a forthcoming new
    testcase, which uses the .rva directive.

Diff:
---
 gas/config/tc-sh.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c
index 551d8e8b24d..8ab8414feac 100644
--- a/gas/config/tc-sh.c
+++ b/gas/config/tc-sh.c
@@ -3602,6 +3602,9 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
 
     case BFD_RELOC_32:
     case BFD_RELOC_32_PCREL:
+#if defined (OBJ_COFF) && defined (TE_PE)
+    case BFD_RELOC_RVA:
+#endif
       apply_full_field_fix (fixP, buf, val, 4);
       break;


More information about the Binutils-cvs mailing list