This is the mail archive of the bfd@sourceware.cygnus.com mailing list for the bfd project.


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

Re: Mixing REL and RELA


> 
> I had this working at least for a little while for the 64 bit MIPS ELF
> target, where the ABI from SGI requires it.  However, that target
> never really worked, so I don't know how well mixing REL and RELA
> works.
> 
> The support I wrote for MIPS is CPU dependent; the code is in
> elf64-mips.c.  But I can't think of any reason why it has to be there.
> 
> Most relocation processing is CPU dependent anyhow, probably too much
> so.
> 
> However, I would discourage mixing REL and RELA in object files.
> That's just added complexity for no real benefit that I can see.
> 

Unfortunately some ABIs require that.

-- 
H.J. Lu (hjl@gnu.org)