]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
msp430/gas: correct BFD_RELOC_32 handling
authorJan Beulich <jbeulich@suse.com>
Fri, 13 Dec 2024 08:43:12 +0000 (09:43 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 13 Dec 2024 08:43:12 +0000 (09:43 +0100)
It was likely a copy-and-paste oversight that bfd_putl16() was used here
from the very beginning. And of course there's a difference only if the
value to be stored is different from the value that's already there;
typically both are 0.

gas/config/tc-msp430.c

index 32c57eea6216b8911da0e9e17f63e2071c9449f5..71500fb70038a68f9f6e1b94fd8d0bf8db0da9df 100644 (file)
@@ -4541,7 +4541,7 @@ md_apply_fix (fixS * fixp, valueT * valuep, segT seg)
          break;
 
        case BFD_RELOC_32:
-         bfd_putl16 ((bfd_vma) value, where);
+         bfd_putl32 ((bfd_vma) value, where);
          break;
 
        case BFD_RELOC_MSP430_ABS8: