about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-05-23 12:42:28 -0400
committerMike Frysinger <vapier@gentoo.org>2013-06-24 20:26:58 -0400
commit17db6e8d6b12f55e312fcab46faf5d332c806fb6 (patch)
treeab95a1c4fdeda9d12e21260604045fd4518afb5a /ChangeLog
parentd605071ebf1fbbba5998a349540d4ad4e667f65e (diff)
downloadglibc-17db6e8d6b12f55e312fcab46faf5d332c806fb6.tar.gz
glibc-17db6e8d6b12f55e312fcab46faf5d332c806fb6.tar.xz
glibc-17db6e8d6b12f55e312fcab46faf5d332c806fb6.zip
[BZ #10283] localedef: align fixed maps to SHMLBA
Many Linux arches require fixed mmaps to be aligned higher than pagesize,
so use the SHMLBA define as it represents this quantity exactly.

This fixes spurious errors seen on those arches like:
cannot map archive header: Invalid argument

URL: http://sourceware.org/bugzilla/show_bug.cgi?id=10283
Reported-by: CHIKAMA Masaki <masaki.chikama@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog22
1 files changed, 22 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 18e41e8083..445d131a10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,27 @@
 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
 
+	[BZ #10283]
+	* NEWS: Note fixing of BZ #10283.
+	* locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
+	* locale/programs/locarchive.c: Include libc-mmap.h.
+	(prepare_address_space): Take two new outputs (the mmap base and len).
+	Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
+	values.
+	(create_archive): Declare new mmap base and len values for
+	prepare_address_space, and store the result in ah.
+	(file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
+	(enlarge_archive): If ah->mmap_base is not NULL, use that and
+	ah->mmap_len to unmap rather than ah->addr and ah->reserved.
+	Declare new mmap base and len values for
+	prepare_address_space, and store the result in new_ah.
+	(open_archive): Declare new mmap base and len values for
+	prepare_address_space, and store the result in ah.
+	(close_archive): If ah->mmap_base is not NULL, use that and
+	ah->mmap_len to unmap rather than ah->addr and ah->reserved.
+	* sysdeps/generic/libc-mmap.h: New file.
+
+2013-06-24  Mike Frysinger  <vapier@gentoo.org>
+
 	* include/libc-internal.h (ALIGN_DOWN): New helper macro.
 	(ALIGN_UP): Likewise.
 	(PTR_ALIGN_DOWN): Likewise.