MIPS relocation is REL?

K. Ahmed Feroz feroz@acmet.com
Wed May 26 08:38:00 GMT 2004


Thank You... Mr.Ralf.
Do NABI and ABI differ only in Relocation format?

> -----Original Message-----
> From: binutils-owner@sources.redhat.com [mailto:binutils-
> owner@sources.redhat.com] On Behalf Of Ralf Baechle
> Sent: Wednesday, May 26, 2004 5:48 AM
> To: binutils@sources.redhat.com; feroz@acmet.com
> Subject: Re: MIPS relocation is REL?
>
> On Tue, May 25, 2004 at 12:07:56PM -0400, Ian Lance Taylor wrote:
>
> > "K. Ahmed Feroz" <feroz@acmet.com> writes:
> >
> > > I think all MIPS processor using "REL" relocations instead of
RELA.
> >
> > Actually some versions of MIPS ELF support both.  Search for RELA in
> > bfd/elf64-mips.c.
>
> NABI which is the binary format used for N32 32-bit and N64 64-bit ELF
> binaries.
>
> > > Can anyone provide me the reason why it is "REL" instead "RELA"?
> >
> > The original MIPS ELF Processor Supplement required REL relocs, not
> > RELA relocs.  That was probably a mistake, but it was one made a
long
> > time ago.
>
> Indeed - but it was painful at times.
>
> To keep the number of design mistakes at any time constant NABI uses a
> relocation format that's entirely unusual and overdesigned and NABI
> allows mixing of REL and RELA ...
>
>   Ralf



More information about the Binutils mailing list