[PATCH 1/4] MIPS/GAS: Fix equated symbols in relaxation
Richard Sandiford
rdsandiford@googlemail.com
Tue Jul 27 18:37:00 GMT 2010
"Maciej W. Rozycki" <macro@codesourcery.com> writes:
> Hi,
>
> Equated symbols (defined with .eqv) are not yet fully resolved by the
> time relaxation is made. As a result, if used in a relaxed expression,
> they cause a failure as follows:
>
> branch-self.s:30: Error: attempt to get value of unresolved symbol `fnord'
>
> The fix is to manually walk the chain of symbols; we handle additive
> expressions involving constant (positive or negative) addends here only
> like elsewhere.
>
> 2010-07-26 Maciej W. Rozycki <macro@codesourcery.com>
>
> gas/
> * config/tc-mips.c: Include "struc-symbol.h".
> (md_convert_frag): Resolve equated symbols manually.
Can you explain in more detail why the equated symbol handling
in resolve_symbol_value doesn't do the right thing?
Richard
More information about the Binutils
mailing list