This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: REL vs. RELA: how to choose?
Geoff Keating <geoffk@geoffk.org> writes:
> > From: Doug Evans <dje@transmeta.com>
> > Date: Wed, 14 Feb 2001 20:43:32 -0800 (PST)
>
> > Note that the mips and m32r ports are REL
> > but they do get the 16 hi + 16 lo case correct.
>
> They do it by constraining the code sequences that compilers can
> generate, leading to poorer optimisation. (The actual requirement is
> that a LO reloc to the same address must immediately follow a HI
> reloc, I believe.)
They used to constrain the code sequence, but I believe that they no
longer do, at least when using gas. The assembler now sorts the
relocs to preserve the properties required in the object file. See
mips_frob_file in gas/config/tc-mips.c.
Ian