aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2024-12-13 09:43:12 +0100
committerJan Beulich <jbeulich@suse.com>2024-12-13 09:43:12 +0100
commit251abe2e696c2f8cb18791330d3fb917b5e0acbd (patch)
tree8849b8eb3821d740a7068e60de14c99e9deae09f
parentbbe22ca078c02ca248722832fd77e2a6cd2813c5 (diff)
downloadgdb-251abe2e696c2f8cb18791330d3fb917b5e0acbd.zip
gdb-251abe2e696c2f8cb18791330d3fb917b5e0acbd.tar.gz
gdb-251abe2e696c2f8cb18791330d3fb917b5e0acbd.tar.bz2
msp430/gas: correct BFD_RELOC_32 handling
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.
-rw-r--r--gas/config/tc-msp430.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-msp430.c b/gas/config/tc-msp430.c
index 32c57ee..71500fb 100644
--- a/gas/config/tc-msp430.c
+++ b/gas/config/tc-msp430.c
@@ -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: