Damaged PPC_REL24 handling

Ulrich Drepper drepper@cygnus.com
Fri Nov 13 15:39:00 GMT 1998


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   `------------------------



More information about the Libc-alpha mailing list