This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: The mips gas is broken


Hi Alan,

> Pro: Before relaxation, we won't see any change as frag addresses are
>      all zero.
>    - Cures a potential problem with S_GET_VALUE being called for
>      complex expressions after finalize_syms has been set but before
>      all symbols are resolved (write.c:1900).  This will resolve all
>      symbols in the expression, leading to some symbols having their
>      final value, while most have yet to have their frag address added.
>    - Removes the necessity for another TC_* macro.
>    - Will get rid of comments about S_GET_VALUE not actually returning
>      the value of a symbols.
> 
> Con: Symbol value during relaxation is a little tricky as the frag
>      addresses are in flux, but relaxation needs to deal with this
>      problem anyway.
>    - Backends, write.c:relax_segment need some tweaks.
>    - slower.
>    - will probably break something.
> 
> Is it worth doing?

Yes I think so.  I like the idea of cleaning this code up.

Cheers
        Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]