aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mn10200.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1997-02-07 03:09:52 +0000
committerJeff Law <law@redhat.com>1997-02-07 03:09:52 +0000
commite58035e374feb473df47d15f5cb9803795d47d0b (patch)
tree614dc355c0ec5f879af979a96f86e5a44a8f5a87 /gas/config/tc-mn10200.c
parentcceb79baa82bc668007536032f692da09ca60482 (diff)
downloadgdb-e58035e374feb473df47d15f5cb9803795d47d0b.zip
gdb-e58035e374feb473df47d15f5cb9803795d47d0b.tar.gz
gdb-e58035e374feb473df47d15f5cb9803795d47d0b.tar.bz2
* config/tc-mn10200.c (md_estimate_size_before_relax): Treat
a jsr target in a different section just like a jsr to an undefined target. Bug triggerd by c++ tests.
Diffstat (limited to 'gas/config/tc-mn10200.c')
-rw-r--r--gas/config/tc-mn10200.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-mn10200.c b/gas/config/tc-mn10200.c
index 2fd1784..7bbc572 100644
--- a/gas/config/tc-mn10200.c
+++ b/gas/config/tc-mn10200.c
@@ -1230,7 +1230,8 @@ md_estimate_size_before_relax (fragp, seg)
return 3;
if (fragp->fr_subtype == 6)
{
- if (!S_IS_DEFINED (fragp->fr_symbol))
+ if (!S_IS_DEFINED (fragp->fr_symbol)
+ || seg != S_GET_SEGMENT (fragp->fr_symbol))
{
fragp->fr_subtype = 7;
return 5;