This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: REL vs. RELA: how to choose?
- To: greg at mcgary dot org
- Subject: Re: REL vs. RELA: how to choose?
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: Wed, 14 Feb 2001 17:10:34 -0800
- CC: binutils at sources dot redhat dot com
- References: <200102142335.QAA28296@kayak.mcgary.org>
- Reply-to: Geoff Keating <geoffk at redhat dot com>
> Date: Wed, 14 Feb 2001 16:35:52 -0700
> From: Greg McGary <greg@mcgary.org>
> ------------------------------------------------------------------------------
> As shown above, only Elf32_Rela entries contain an explicit
> addend. Entries of type Elf32_Rel store an implicit addend in the
> location to be modified. Depending on the processor architecture, one
> form or the other might be necessary or more convenient. Consequently,
> an implementation for a particular machine may use one form
> exclusively or either form depending on context.
> ------------------------------------------------------------------------------
>
> What are the processor-architecture features that might make one or
> the other of REL vs. RELA necessary or more convenient?
One feature is that there might not be sufficient space in the
place to be relocated to hold all reasonable sizes of addend. For
instance, there might only be 16 bits.
--
- Geoffrey Keating <geoffk@geoffk.org>