GAS relaxation: estimation in md_relax_frag() do not match md_apply_fix()

William Tambe tambewilliam@gmail.com
Wed Mar 4 04:03:00 GMT 2020
In our Binutils port, GAS relaxing is done implementing md_relax_frag()
such that the displacement used to generate the growth amount to return
is computed using:
((S_GET_VALUE (symbolP) + fragP->fr_offset) -
(fragP->fr_address + fragP->fr_fix));

However, during md_apply_fix(), the same displacement value is greatly
different, causing it not to fit in the relocation fix estimated
during md_relax_frag().

Any idea what could explain it ?



More information about the Binutils mailing list