This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

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


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 ?


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