* config/tc-mmix.c (md_estimate_size_before_relax): Don't consider

a weak symbol in same section to be within reach.
This commit is contained in:
Hans-Peter Nilsson 2002-03-14 10:02:42 +00:00
parent c295a5111b
commit 2be11e7ecc
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
* 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 <nickc@cambridge.redhat.com>
* po/fr.po: Updated version.

View File

@ -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 \