This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Why does m32r-elf use REL relocations?
On Thu, Jun 12, 2003 at 02:13:31PM +0100, Nick Clifton wrote:
> Hi Kazuhiro,
>
> > Would you tell me why M32R target uses REL relocations instead of RELA?
>
> Because that is what Mitsubishi requested. They were concerned about
> the size of object files and wanted to use REL relocations as these
> are smaller.
>
> > Can we change them ?
>
> The problem would be incompatibility with already existing m32r object
> files. (In libraries for instance).
In theory the BFD routines should be able to handle linking modules with REL
and RELA relocations, but always producing RELA for new code. I suspect you
would need some amount of code in BFD to handle both, but it shouldn't be that
great.
--
Michael Meissner
email: gnu@the-meissners.org
http://www.the-meissners.org