* elf/rtld.c (dl_main): Use the page size to find the map start.

This commit is contained in:
Ulrich Drepper 2007-11-06 01:12:33 +00:00
parent 94a749f69a
commit b92e378086
4 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
* elf/rtld.c (dl_main): Use the page size to find the map start.
2007-11-05 Ulrich Drepper <drepper@redhat.com>
* time/tzfile.c (__tzfile_read): Fix check for version 0 data files.

View File

@ -1166,7 +1166,8 @@ of this helper program; chances are you did not intend to run this program.\n\
ElfW(Addr) allocend;
/* Remember where the main program starts in memory. */
mapstart = (main_map->l_addr + (ph->p_vaddr & ~(ph->p_align - 1)));
mapstart = (main_map->l_addr
+ (ph->p_vaddr & ~(GLRO(dl_pagesize) - 1)));
if (main_map->l_map_start > mapstart)
main_map->l_map_start = mapstart;

View File

@ -1,3 +1,8 @@
2007-11-05 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork):
Use __linkin_atfork.
2007-11-03 Mike Frysinger <vapier@gentoo.org>
* sysdeps/unix/sysv/linux/sh/lowlevellock.S (LOAD_FUTEX_WAIT): Add

View File

@ -98,8 +98,7 @@ __register_atfork (prepare, parent, child, dso_handle)
newp->child_handler = child;
newp->dso_handle = dso_handle;
newp->next = __fork_handlers;
__fork_handlers = newp;
__linkin_atfork (newp);
}
/* Release the lock. */