From: Jeff Law Date: Fri, 7 Feb 1997 03:09:52 +0000 (+0000) Subject: * config/tc-mn10200.c (md_estimate_size_before_relax): Treat X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e58035e374feb473df47d15f5cb9803795d47d0b;p=binutils-gdb.git * 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 388279bfd09..dbccd95d8fa 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +Thu Feb 6 20:08:12 1997 Jeffrey A Law (law@cygnus.com) + + * 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. + Thu Feb 6 16:52:57 1997 Ian Lance Taylor * config/tc-mips.c (mips_fix_adjustable): Don't adjust relocations diff --git a/gas/config/tc-mn10200.c b/gas/config/tc-mn10200.c index 2fd17849d91..7bbc5725710 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;