]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas/SH: support BFD_RELOC_RVA in the PE/COFF case
authorJan Beulich <jbeulich@suse.com>
Fri, 10 Oct 2025 14:00:30 +0000 (16:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 10 Oct 2025 14:00:30 +0000 (16:00 +0200)
This is just so the target won't need excluding in a forthcoming new
testcase, which uses the .rva directive.

gas/config/tc-sh.c

index 551d8e8b24d8211b384aaba0ff1f5a0a4eb4835a..8ab8414feacbbe28162d8f540b791ca556c6ac18 100644 (file)
@@ -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;