aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-mn10200.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 388279b..dbccd95 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 <ian@cygnus.com>
* 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 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;