This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10855] New: localedef fails to create locale-archive on SPARC
- From: "aurelien at aurel32 dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 27 Oct 2009 23:11:31 -0000
- Subject: [Bug libc/10855] New: localedef fails to create locale-archive on SPARC
- Reply-to: sourceware-bugzilla at sourceware dot org
localedef now reserve memory with mmap and MMAP_PRIVATE, and later remap this
memory area using MMAP_SHARED | MMAP_FIXED. This does not work on SPARC with a
64-bit kernel as MMAP_PRIVATE and MMAP_SHARED have different alignement
constraints. MMAP_PRIVATE must be aligned on the page size (4kB), while
MMAP_SHARED must be aligned on the L1 D-Cache size (16kB).
The solution is to reserve and remap the memory with the same flags. The
attached patch does that.
--
Summary: localedef fails to create locale-archive on SPARC
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: aurelien at aurel32 dot net
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: sparc-unknown-linux-gnu
GCC host triplet: sparc-unknown-linux-gnu
GCC target triplet: sparc-unknown-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=10855
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.