Help about calculation of 'S' notation for a relocatable ELF execute for MIPS arch

Ian Lance Taylor iant@google.com
Tue Aug 28 05:29:00 GMT 2007


"PRC" <panruochen@gmail.com> writes:

> I'm studying relocation of ELF for MIPS arch.

binutils@sourceware.org is probably a better mailing list.  See
http://sourceware.org/binutils/.

> The document says 
> S   Represents the value of the symbol whose index resides in the relocation
>     entry, unless the the symbol is STB_LOCAL and is of type
>     STT_SECTION in which case S represents the original sh_addr minus
>     the final sh_addr.

I don't have a copy handy, but if the document says that, I'm pretty
sure it's wrong.  It should say final sh_addr minus original sh_addr.

Ian



More information about the Gcc-help mailing list