projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb8e548
)
(__elf_preferred_address): Prefer gaps below main executable.
author
drepper
<drepper>
Sat, 30 Jun 2001 21:20:48 +0000
(21:20 +0000)
committer
drepper
<drepper>
Sat, 30 Jun 2001 21:20:48 +0000
(21:20 +0000)
sysdeps/powerpc/dl-machine.c
patch
|
blob
|
history
diff --git
a/sysdeps/powerpc/dl-machine.c
b/sysdeps/powerpc/dl-machine.c
index
a76f1f0
..
77d6e37
100644
(file)
--- 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;