This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: R_PPC_REL24 overflow
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: James Lemke <jwlemke at wasabisystems dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 31 Mar 2006 11:19:32 +0930
- Subject: Re: R_PPC_REL24 overflow
- References: <1143658412.5011.111.camel@winch.thelemkes.ca>
On Wed, Mar 29, 2006 at 01:53:31PM -0500, James Lemke wrote:
> The generated asm makes the reference as:
> bl pthread_mutex_unlock@plt # 141 *call_value_nonlocal_sysv/1 [length = 4]
>
> And for this, gas generates:
> R_PPC_REL24 __pthread_mutex_lock
Nope, you're looking at the wrong asm. unlock vs. lock (and underscore
difference too). As rth said, you need R_PPC_PLTREL24. My guess is
that you have some buggy asm somewhere lacking @plt on the call.
--
Alan Modra
IBM OzLabs - Linux Technology Centre