diff options
-rw-r--r-- | sysdeps/powerpc/dl-machine.c | 2 |
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; |