This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


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

Re: Damaged PPC_REL24 handling


Daniel Jacobowitz <drow+@cs.cmu.edu> writes:

> Something is wrong with the handling of R_PPC_REL24 relocations.  This
> error keeps getting triggered:
> 
>     case R_PPC_REL24:
>       {
>         Elf32_Sword delta = finaladdr - (Elf32_Word) (char *) reloc_addr;
>         if (delta << 6 >> 6 != delta)

Try replacing this with

	  if (delta & ~0x3fffffc)

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


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