This is the mail archive of the libc-alpha@sources.redhat.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]

[PATCH] Re: ppc situation


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


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