From 2be11e7eccaec6de8a45797741d2331181819a95 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Thu, 14 Mar 2002 10:02:42 +0000 Subject: [PATCH] * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider a weak symbol in same section to be within reach. --- gas/ChangeLog | 5 +++++ gas/config/tc-mmix.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 437b631531..d69da3c8b6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-03-14 Hans-Peter Nilsson + + * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider + a weak symbol in same section to be within reach. + 2002-03-13 Nick Clifton * po/fr.po: Updated version. diff --git a/gas/config/tc-mmix.c b/gas/config/tc-mmix.c index a8c7e239c1..a9087814c8 100644 --- a/gas/config/tc-mmix.c +++ b/gas/config/tc-mmix.c @@ -2172,7 +2172,8 @@ md_estimate_size_before_relax (fragP, segment) #define HANDLE_RELAXABLE(state) \ case ENCODE_RELAX (state, STATE_UNDF): \ if (fragP->fr_symbol != NULL \ - && S_GET_SEGMENT (fragP->fr_symbol) == segment) \ + && S_GET_SEGMENT (fragP->fr_symbol) == segment \ + && !S_IS_WEAK (fragP->fr_symbol)) \ { \ /* The symbol lies in the same segment - a relaxable case. */ \ fragP->fr_subtype \ -- 2.34.1