This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Help about calculation of 'S' notation for a relocatable ELF execute for MIPS arch
- From: Ian Lance Taylor <iant at google dot com>
- To: "PRC" <panruochen at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: 27 Aug 2007 22:28:57 -0700
- Subject: Re: Help about calculation of 'S' notation for a relocatable ELF execute for MIPS arch
- References: <200708281040511059979@gmail.com>
"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