This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: R_PPC_REL24 overflow


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]