mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 23:10:06 +00:00
(__elf_preferred_address): Prefer gaps below main executable.
This commit is contained in:
parent
33e25d26e7
commit
e86f971d89
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user