This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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]

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


"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


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