* config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
Initialize target of fixup to zero.
This commit is contained in:
parent
646a0a402c
commit
32c27eed9c
2 changed files with 9 additions and 0 deletions
|
@ -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>
|
2002-11-07 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
* config/tc-mips.c (macro_build_lui): _gp_disp is not special on
|
* config/tc-mips.c (macro_build_lui): _gp_disp is not special on
|
||||||
|
|
|
@ -2341,6 +2341,10 @@ md_convert_frag (abfd, sec, fragP)
|
||||||
case STATE_GREG_DEF:
|
case STATE_GREG_DEF:
|
||||||
if (fragP->tc_frag_data == NULL)
|
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
|
tmpfixP
|
||||||
= fix_new (fragP, var_partp - fragP->fr_literal, 8,
|
= fix_new (fragP, var_partp - fragP->fr_literal, 8,
|
||||||
fragP->fr_symbol, fragP->fr_offset, 0, BFD_RELOC_64);
|
fragP->fr_symbol, fragP->fr_offset, 0, BFD_RELOC_64);
|
||||||
|
|
Loading…
Reference in a new issue