[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commits] r23584 - in /fsf/glibc-2_17-branch/libc: NEWS ports/ChangeLog.tile ports/sysdeps/tile/dl-runtime.c



Author: eglibc
Date: Wed Jul 24 00:03:32 2013
New Revision: 23584

Log:
Import glibc-2.17 for 2013-07-24

Modified:
    fsf/glibc-2_17-branch/libc/NEWS
    fsf/glibc-2_17-branch/libc/ports/ChangeLog.tile
    fsf/glibc-2_17-branch/libc/ports/sysdeps/tile/dl-runtime.c

Modified: fsf/glibc-2_17-branch/libc/NEWS
==============================================================================
--- fsf/glibc-2_17-branch/libc/NEWS (original)
+++ fsf/glibc-2_17-branch/libc/NEWS Wed Jul 24 00:03:32 2013
@@ -8,7 +8,7 @@
 Version 2.17.1
 
 * The following bugs are resolved with this release:
-  15003, 15006, 15122.
+  15003, 15006, 15122, 15759.
 
 
 Version 2.17

Modified: fsf/glibc-2_17-branch/libc/ports/ChangeLog.tile
==============================================================================
--- fsf/glibc-2_17-branch/libc/ports/ChangeLog.tile (original)
+++ fsf/glibc-2_17-branch/libc/ports/ChangeLog.tile Wed Jul 24 00:03:32 2013
@@ -1,3 +1,9 @@
+2013-07-22  Chris Metcalf  <cmetcalf@xxxxxxxxxx>
+
+	[BZ #15759]
+	* sysdeps/tile/dl-runtime.c (sim_dlclose): New function.
+	(_dl_unmap): Call sim_dlclose().
+
 2013-06-12  Chris Metcalf  <cmetcalf@xxxxxxxxxx>
 
 	* sysdeps/tile/bits/endian.h (__BYTE_ORDER): Default to little.

Modified: fsf/glibc-2_17-branch/libc/ports/sysdeps/tile/dl-runtime.c
==============================================================================
--- fsf/glibc-2_17-branch/libc/ports/sysdeps/tile/dl-runtime.c (original)
+++ fsf/glibc-2_17-branch/libc/ports/sysdeps/tile/dl-runtime.c Wed Jul 24 00:03:32 2013
@@ -127,8 +127,8 @@
 }
 
 /* Support notifying the simulator about removed objects prior to munmap().  */
-void internal_function
-_dl_unmap (struct link_map *l)
+static void
+sim_dlclose (ElfW(Addr) map_start)
 {
   int shift;
 
@@ -144,9 +144,15 @@
   DLPUTC ('0');
   DLPUTC ('x');
   for (shift = (int) sizeof (unsigned long) * 8 - 4; shift >= 0; shift -= 4)
-    DLPUTC ("0123456789abcdef"[(l->l_map_start >> shift) & 0xF]);
+    DLPUTC ("0123456789abcdef"[(map_start >> shift) & 0xF]);
   DLPUTC ('\0');
+
 #undef DLPUTC
+}
 
+void internal_function
+_dl_unmap (struct link_map *l)
+{
+  sim_dlclose (l->l_map_start);
   __munmap ((void *) l->l_map_start, l->l_map_end - l->l_map_start);
 }

_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits