This is the mail archive of the
mailing list for the binutils project.
Re: Adding MIPS support to GOLD
On Tue, Mar 25, 2008 at 11:23:15AM -0700, Ian Lance Taylor wrote:
> For details you have to read the MIPS ELF ABI, which you can find in
> PDF form off of http://sco.com/developers/devspecs/ .
> MIPS uses multi-GOT because it only permits 16 bit offsets from a base
> register. That means that if you need a GOT larger than 65536 bytes,
> as is true of large programs with lots of global variables, you need
> to use more than one GOT. i386 permits 32 bit offsets from a base
> register, so a single GOT is always enough.
MIPS's GOT (and multi-GOT) are particularly ornery as
platform-specific magic go - mostly due to IRIX compatibility.