Mixing REL and RELA
H.J. Lu
hjl@lucon.org
Thu Apr 15 14:15:00 GMT 1999
> If REL works now, there is probably no reason to switch to RELA. The
> only reason I can think of would be if the compiler can gain an
> advantage by splitting instructions which require relocations. It is
> sometime possible to make that work with REL instructions anyhow.
>
> It would also be possible for the linker to support REL and RELA
> relocations simultaneously, so there would be no need for a big
> cutover. We would just change gas to start generating RELA
> relocations, and then after a while we could throw away the REL
> support.
>
> But I don't see a reason to do that if the code works now.
>
Does the linker support mixing REL and RELA on any targets? How CPU
depedent is this support? It may be useful to CPUs other than ARM.
--
H.J. Lu (hjl@gnu.org)
More information about the Bfd
mailing list