This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] Re: ppc situation
- To: Ulrich Drepper <drepper at cygnus dot com>
- Subject: [PATCH] Re: ppc situation
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Sat, 30 Jun 2001 22:35:39 +0200
- Cc: Jack Howarth <howarth at nitro dot med dot uc dot edu>, libc-alpha at sources dot redhat dot com
- References: <10106301539.ZM30638@nitro.med.uc.edu> <m3g0chbvdl.fsf@otr.mynet>
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
On Sat, Jun 30, 2001 at 12:49:58PM -0700, Ulrich Drepper wrote:
> "Jack Howarth" <howarth@nitro.med.uc.edu> writes:
>
> > If the libc developers are going to release a glibc 2.2.4 which
> > exposes such breakage under the glibc 2.2.4 what will be done to
> > help identify these problem programs?
Ulrich, can you please check this in, so that ld.so behaviour on ppc is the
same as in 2.2.3?
This is the less expensive patch variant, Franz said it works and Geoff said
both patches look fine to him.
2001-06-30 Jakub Jelinek <jakub@redhat.com>
* sysdeps/powerpc/dl-machine.c (__elf_preferred_address): Prefer
gaps below main executable.
--- libc/sysdeps/powerpc/dl-machine.c.jj Fri Mar 2 13:44:57 2001
+++ libc/sysdeps/powerpc/dl-machine.c Sat Jun 30 22:24:08 2001
@@ -119,7 +119,7 @@ __elf_preferred_address(struct link_map
mapend = l->l_map_end | (_dl_pagesize - 1);
assert (mapend > mapstart);
- if (mapend >= high && high >= mapstart)
+ if ((mapend >= high || l == _dl_loaded) && high >= mapstart)
high = mapstart;
else if (mapend >= low && low >= mapstart)
low = mapend;
Jakub