This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: Damaged PPC_REL24 handling
- To: Daniel Jacobowitz <drow+@cs.cmu.edu>
- Subject: Re: Damaged PPC_REL24 handling
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 13 Nov 1998 15:36:39 -0800
- Cc: Geoff Keating <geoffk@ozemail.com.au>, libc-alpha@gnu.org
- References: <19981113170701.A25128@drow.res.cmu.edu>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
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 `------------------------