aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2002-11-10 13:09:11 +0000
committerHans-Peter Nilsson <hp@axis.com>2002-11-10 13:09:11 +0000
commit32c27eed9c852e65f2dea75a38991f41b693dbd6 (patch)
treea2c99fdd16cdcbb9fdacb19e504b8804f33c0b66 /gas
parent646a0a402cc782d9265bda5e5700724a92ca3ef2 (diff)
downloadgdb-32c27eed9c852e65f2dea75a38991f41b693dbd6.zip
gdb-32c27eed9c852e65f2dea75a38991f41b693dbd6.tar.gz
gdb-32c27eed9c852e65f2dea75a38991f41b693dbd6.tar.bz2
* config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
Initialize target of fixup to zero.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mmix.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index b787a99..447b01d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
+ Initialize target of fixup to zero.
+
2002-11-07 Alexandre Oliva <aoliva@redhat.com>
* config/tc-mips.c (macro_build_lui): _gp_disp is not special on
diff --git a/gas/config/tc-mmix.c b/gas/config/tc-mmix.c
index 06335bb..b22ad2e 100644
--- a/gas/config/tc-mmix.c
+++ b/gas/config/tc-mmix.c
@@ -2341,6 +2341,10 @@ md_convert_frag (abfd, sec, fragP)
case STATE_GREG_DEF:
if (fragP->tc_frag_data == NULL)
{
+ /* We must initialize data that's supposed to be "fixed up" to
+ avoid emitting garbage, because md_apply_fix3 won't do
+ anything for undefined symbols. */
+ md_number_to_chars (var_partp, 0, 8);
tmpfixP
= fix_new (fragP, var_partp - fragP->fr_literal, 8,
fragP->fr_symbol, fragP->fr_offset, 0, BFD_RELOC_64);