about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-06-30 21:20:48 +0000
committerUlrich Drepper <drepper@redhat.com>2001-06-30 21:20:48 +0000
commite86f971d89e93b253bfbdef26404e863864fb87d (patch)
tree6ed4c403aaeb68371ee3269baa7e43766663fb94 /sysdeps
parent33e25d26e7ac71e0cfba55a34475cc0ac3570f61 (diff)
downloadglibc-e86f971d89e93b253bfbdef26404e863864fb87d.tar.gz
glibc-e86f971d89e93b253bfbdef26404e863864fb87d.tar.xz
glibc-e86f971d89e93b253bfbdef26404e863864fb87d.zip
(__elf_preferred_address): Prefer gaps below main executable.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/powerpc/dl-machine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/powerpc/dl-machine.c b/sysdeps/powerpc/dl-machine.c
index a76f1f092c..77d6e3766c 100644
--- a/sysdeps/powerpc/dl-machine.c
+++ b/sysdeps/powerpc/dl-machine.c
@@ -119,7 +119,7 @@ __elf_preferred_address(struct link_map *loader, size_t maplength,
       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;