aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-i960.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@tuliptree.org>2002-05-09 01:43:11 +0000
committerJim Wilson <wilson@tuliptree.org>2002-05-09 01:43:11 +0000
commit91975467765f9bbfd9315f44c437bb8a36b5ce2d (patch)
treecb2985d2e21b0ce90516bc9ed4c38d1a0cc66c54 /gas/config/tc-i960.c
parenta1b6236b7d711120a89b9a89929805db064301b8 (diff)
downloadgdb-91975467765f9bbfd9315f44c437bb8a36b5ce2d.zip
gdb-91975467765f9bbfd9315f44c437bb8a36b5ce2d.tar.gz
gdb-91975467765f9bbfd9315f44c437bb8a36b5ce2d.tar.bz2
Fix i960-elf abort in cvt_frag_to_fill while compiling libc/stdio/vfprintf.c.
* config/tc-i960.c (md_estimate_size_before_relax): Return size of current variable part of frag.
Diffstat (limited to 'gas/config/tc-i960.c')
-rw-r--r--gas/config/tc-i960.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-i960.c b/gas/config/tc-i960.c
index 568b8ab..e16775e 100644
--- a/gas/config/tc-i960.c
+++ b/gas/config/tc-i960.c
@@ -1085,7 +1085,8 @@ md_estimate_size_before_relax (fragP, segment_type)
relax_cobr (fragP);
return 4;
}
- return 0;
+
+ return md_relax_table[fragP->fr_subtype].rlx_length;
} /* md_estimate_size_before_relax() */
#if defined(OBJ_AOUT) | defined(OBJ_BOUT)