This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Eliminating R_PPC_REL32 relocations
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: David Dunkle <ddunkle at arxan dot com>
- Cc: "'Joshua N. Edmison'" <jedmison at vt dot edu>, binutils at sourceware dot org
- Date: Thu, 8 Dec 2005 13:01:25 +1030
- Subject: Re: Eliminating R_PPC_REL32 relocations
- References: <43976937.1060507@vt.edu> <20051207235107.HVBL8553.imta03ps.mx.bigpond.com@sourceware.org>
On Wed, Dec 07, 2005 at 03:50:24PM -0800, David Dunkle wrote:
> I have found that these relocations are used to implement the jump tables
> associated with switch statements as generated by GCC. The jump tables are
> in data sections in the cases I have examined.
I am surprised that jump tables are resulting in REL32 relocs in a
shared library. The jump table entries should be relative addresses of
*local* labels, and so need no relocation in the final link output.
--
Alan Modra
IBM OzLabs - Linux Technology Centre