glibc:hjl/32bit/master

Last commit made on 2015-12-15
Get this branch:
git clone -b hjl/32bit/master https://git.launchpad.net/glibc

Branch merges

Branch information

Name:
hjl/32bit/master
Repository:
lp:glibc

Recent commits

b9eb92a... by "H.J. Lu" <email address hidden>

Add Prefer_MAP_32BIT_EXEC to map executable pages with MAP_32BIT

According to Silvermont software optimization guide, for 64-bit
applications, branch prediction performance can be negatively impacted
when the target of a branch is more than 4GB away from the branch. Add
the Prefer_MAP_32BIT_EXEC bit so that mmap will try to map executable
pages with MAP_32BIT first. NB: MAP_32BIT will map to lower 2GB, not
lower 4GB, address. Prefer_MAP_32BIT_EXEC reduces bits available for
address space layout randomization (ASLR), which is always disabled for
SUID programs and can only be enabled by setting environment variable,
LD_PREFER_MAP_32BIT_EXEC.

On Fedora 23, this patch speeds up GCC 5 testsuite by 3% on Silvermont.

 [BZ #19367]
 * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
 * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
 * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
 * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
 (index_Prefer_MAP_32BIT_EXEC): Likewise.

c9afcaa... by "H.J. Lu" <email address hidden>

Enable Silvermont optimizations for Knights Landing

Knights Landing processor is based on Silvermont. This patch enables
Silvermont optimizations for Knights Landing.

 * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
 Silvermont optimizations for Knights Landing.

42d6443... by Andreas Schwab <email address hidden>

Don't emit invalid extra shift character at block boundary by iconv (bug 17197)

04ae79a... by Florian Weimer

Fix aliasing violation in tst-rec-dlopen

eed3e1e... by Joseph Myers <email address hidden>

Make obsolete syscall wrappers into compat symbols (bug 18472).

Various Linux kernel syscalls have become obsolete over time.
Specifically, the following are obsolete in all kernel versions
supported by glibc, are not present for architectures more recently
added to the kernel, and as such, the wrapper functions for them
should be compat symbols, not in static libc and not available for new
links with shared libc.

* bdflush: in Linux 2.6, does nothing if present.

* create_module get_kernel_syms query_module: Linux 2.4 module
  interface, syscalls not present in Linux 2.6.

* uselib: part of the mechanism for loading a.out shared libraries,
  irrelevant with ELF.

This patch adds support for syscalls.list to list syscall aliases of
the form NAME@VERSION:OBSOLETED, with SHLIB_COMPAT conditionals being
generated for such aliases. Those five syscalls are then made into
compat symbols (obsoleted in glibc 2.23, so future ports won't have
these symbols at all), with the header <sys/kdaemon.h> declaring
bdflush being removed. When we move to 3.2 as minimum kernel version,
the same can be done for nfsservctl (removed in Linux 3.1) as well.

Tested for x86_64 and x86 (testsuite, as well as checking that the
symbols in question indeed become compat symbols, that they are indeed
omitted from static libc, and that the generated SHLIB_COMPAT
conditionals look right).

 [BZ #18472]
 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
 for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
 conditionals for them.
 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
 * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
 sys/kdaemon.h.
 * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
 compat-only syscall, obsoleted in glibc 2.23.
 (create_module): Likewise.
 (get_kernel_syms): Likewise.
 (query_module): Likewise.
 (uselib): Likewise.
 * manual/sysinfo.texi (System Parameters): Do not mention bdflush.

5db0877... by Aurelien Jarno <email address hidden>

Cleanup ARM ioperm implementation

Since GLIBC requires a minimum 2.6.32 kernel, the patch cleanups
the ARM ioperm by removing pre-2.4.23 kernel support.

976ef87... by Steve Ellcey <email address hidden>

Fix indentation.

 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
 Fix indentation.

996b03d... by Steve Ellcey <email address hidden>

    Fix indentation.

 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.

895f3a1... by Steve Ellcey <email address hidden>

    Fix indentation.

 * stdlib/strtol_l.c (__strtol_l): Fix indentation.

85bafe6... by Joseph Myers <email address hidden>

Automate LC_CTYPE generation for tr_TR, update to Unicode 8.0.0 (bug 18491).

This patch makes the automation of Unicode LC_CTYPE generation also
support generating the modified LC_CTYPE used for Turkish (where case
conversions of 'i' and 'I' differ from ASCII conventions), so allowing
that to be more readily kept in sync for future Unicode updates. The
patch includes the locale update generated by the scripts.

Tested for x86_64.

 [BZ #18491]
 * unicode-gen/unicode_utils.py (to_upper_turkish): New function.
 (to_lower_turkish): Likewise.
 * unicode-gen/gen_unicode_ctype.py (output_tables): Support
 producing output with Turkish case conversions.
 (--turkish): New command-line option.
 * unicode-gen/Makefile (GENERATED): Add tr_TR.
 (tr_TR): New rule.
 * locales/tr_TR: Regenerate LC_CTYPE.