]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* elf/rtld.c (dl_main): Use the page size to find the map start.
authorUlrich Drepper <drepper@redhat.com>
Tue, 6 Nov 2007 01:12:33 +0000 (01:12 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 6 Nov 2007 01:12:33 +0000 (01:12 +0000)
ChangeLog
elf/rtld.c
nptl/ChangeLog
nptl/sysdeps/unix/sysv/linux/register-atfork.c

index 92e1e5ab2650d170dc6b6b3cee2e4f2ddc247341..e6d92a9312a23b840b4ba30de853e7e06fb270de 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 6df81fb2c1bdeb09bcd1fd7806815c81fef18413..98817d9fa05538d6810b687cbb01ba5a549e34ca 100644 (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;
 
index 6461785669317efb00b7fc38c3ca20cf582e5378..c92e6abf45a3f7f82609bd87801cfd3eef663121 100644 (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
index 71abd0fb96fb345f58eba39bd0b28b3237cfd697..bd103295fb8023c73e9feb527577a8cdd3cde516 100644 (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.  */