Unbreak md_estimate_size_before_relax for multi-pass relaxation,committed (tc-cris.c)
Hans-Peter Nilsson
hans-peter.nilsson@axis.com
Tue Apr 3 21:43:00 GMT 2001
> Date: Wed, 4 Apr 2001 14:19:12 +1000 (EST)
> From: Alan Modra <alan@linuxcare.com.au>
> On Wed, 4 Apr 2001, Hans-Peter Nilsson wrote:
>
> > It is now necessary to set fr_var according to fr_subtype also
>
> I believe this is only necessary if a port makes use of fr_var in
> machine-dependent code. The generic code doesn't care about fr_var in
> rs_machine_dependent frags.
>
> I suspect that if fr_var was set
> correctly first time around, you wouldn't need to do anything on
> subsequent relax passes.
The port needs to return the size of the variant part for states
where it didn't matter before. Some ports, particularly among
those I listed, return the same unmodified fr_var, or at least
do not return a value based on fr_subtype as necessary.
As you know, a correct return-value on subsequent rounds is
necessary for correct fr_address calculation.
brgds, H-P
More information about the Binutils
mailing list