###
Version 2.25
- The feature test macro __STDC_WANT_LIB_EXT2__, from ISO/IEC TR 24731-2:2010, is supported to enable declarations of functions from that TR. Note that not all functions from that TR are supported by the GNU C Library.
- The feature test macro __STDC_WANT_IEC_60559_BFP_EXT__, from ISO/IEC TS 18661-1:2014, is supported to enable declarations of functions and macros from that TS. Note that not all features from that TS are supported by the GNU C Library.
- The feature test macro __STDC_WANT_IEC_60559_FUNCS_EXT__, from ISO/IEC TS 18661-4:2015, is supported to enable declarations of functions and macros from that TS. Note that most features from that TS are not supported by the GNU C Library.
- The nonstandard feature selection macros _REENTRANT and _THREAD_SAFE are now treated as compatibility synonyms for _POSIX_C_SOURCE=199506L. Since the GNU C Library defaults to a much newer revision of POSIX, this will only affect programs that specifically request an old conformance mode. For instance, a program compiled with -std=c89 -D_REENTRANT will see a change in the visible declarations, but a program compiled with just -D_REENTRANT, or -std=c99 -D_POSIX_C_SOURCE=200809L -D_REENTRANT, will not.
Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be defined by all multithreaded code, but glibc has not required this for many years.
- The inclusion of
These macros are not part of POSIX nor XSI, and their names frequently collide with user code; see for instance glibc bug 19239 and Red Hat bug 130601.
- New
- Integer width macros from TS 18661-1:2014 are added to
- New
- Signaling NaN macros: SNANF, SNAN, SNANL.
- Nearest integer functions: roundeven, roundevenf, roundevenl, fromfp, fromfpf, fromfpl, ufromfp, ufromfpf, ufromfpl, fromfpx, fromfpxf, fromfpxl, ufromfpx, ufromfpxf, ufromfpxl.
- llogb functions: the llogb, llogbf and llogbl functions, and the FP_LLOGB0 and FP_LLOGBNAN macros.
- Max-min magnitude functions: fmaxmag, fmaxmagf, fmaxmagl, fminmag, fminmagf, fminmagl.
- Comparison macros: iseqsig.
- Classification macros: iscanonical, issubnormal, iszero.
- Total order functions: totalorder, totalorderf, totalorderl, totalordermag, totalordermagf, totalordermagl.
- Canonicalize functions: canonicalize, canonicalizef, canonicalizel.
- NaN functions: getpayload, getpayloadf, getpayloadl, setpayload, setpayloadf, setpayloadl, setpayloadsig, setpayloadsigf, setpayloadsigl.
- The functions strfromd, strfromf, and strfroml, from ISO/IEC TS 18661-1:2014, are added to libc. They convert a floating-point number into string.
- Most of glibc can now be built with the stack smashing protector enabled. It is recommended to build glibc with --enable-stack-protector=strong. Implemented by Nick Alcock (Oracle).
- The function explicit_bzero, from OpenBSD, has been added to libc. It is intended to be used instead of memset() to erase sensitive data after use; the compiler will not optimize out calls to explicit_bzero even if they are "unnecessary" (in the sense that no _correct_ program can observe the effects of the memory clear).
- On ColdFire, MicroBlaze, Nios II and SH3, the float_t type is now defined to float instead of double. This does not affect the ABI of any libraries that are part of the GNU C Library, but may affect the ABI of other libraries that use this type in their interfaces.
- On x86_64, when compiling with -mfpmath=387 or -mfpmath=sse+387, the float_t and double_t types are now defined to long double instead of float and double. These options are not the default, and this does not affect the ABI of any libraries that are part of the GNU C Library, but it may affect the ABI of other libraries that use this type in their interfaces, if they are compiled or used with those options.
- The getentropy and getrandom functions, and the
- The buffer size for byte-oriented stdio streams is now limited to 8192 bytes by default. Previously, on Linux, the default buffer size on most file systems was 4096 bytes (and thus remains unchanged), except on network file systems, where the buffer size was unpredictable and could be as large as several megabytes.
- The
- The malloc_get_state and malloc_set_state functions have been removed. Already-existing binaries that dynamically link to these functions will get a hidden implementation in which malloc_get_state is a stub. As far as we know, these functions are used only by GNU Emacs and this change will not adversely affect already-built Emacs executables. Any undumped Emacs executables, which normally exist only during an Emacs build, should be rebuilt by re-running “./configure; make” in the Emacs build tree.
- The “ip6-dotint” and “no-ip6-dotint” resolver options, and the corresponding RES_NOIP6DOTINT flag from
- The "ip6-bytestring" resolver option and the corresponding RES_USEBSTRING flag from
- The flags RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME, RES_KEEPTSIG, RES_BLAST defined in the
- The "inet6" option in /etc/resolv.conf and the RES_USE_INET6 flag for _res.flags are deprecated. The flag was standardized in RFC 2133, but removed again from the IETF name lookup interface specification in RFC 2553. Applications should use getaddrinfo instead.
- DNSSEC-related declarations and definitions have been removed from the
- The resource record type classification macros ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p, ns_t_udp_p, ns_t_xfr_p have been removed from the
- The types res_sendhookact, res_send_qhook, re_send_rhook, and the qhook and rhook members of the res_state type in
- For multi-arch support it is recommended to use a GCC which has been built with support for GNU indirect functions. This ensures that correct debugging information is generated for functions selected by IFUNC resolvers. This support can either be enabled by configuring GCC with '--enable-gnu-indirect-function', or by enabling it by default by setting 'default_gnu_indirect_function'
variable for a particular architecture in the GCC source file 'gcc/config.gcc'.
- GDB pretty printers have been added for mutex and condition variable structures in POSIX Threads. When installed and loaded in gdb these pretty printers show various pthread variables in human-readable form when read using the 'print' or 'display' commands in gdb.
- Tunables feature added to allow tweaking of the runtime for an application program. This feature can be enabled with the '--enable-tunables' configure flag. The GNU C Library manual has details on usage and README.tunables has instructions on adding new tunables to the library.
- A new version of condition variables functions have been implemented in the NPTL implementation of POSIX Threads to provide stronger ordering guarantees.
- A new version of pthread_rwlock functions have been implemented to use a more scalable algorithm primarily through not using a critical section anymore to make state changes.
Security related changes:
- On ARM EABI (32-bit), generating a backtrace for execution contexts which have been created with makecontext could fail to terminate due to a missing .cantunwind annotation. This has been observed to lead to a hang (denial of service) in some Go applications compiled with gccgo. Reported by Andreas Schwab. (CVE-2016-6323)
- The DNS stub resolver functions would crash due to a NULL pointer dereference when processing a query with a valid DNS question type which was used internally in the implementation. The stub resolver now uses a question type which is outside the range of valid question type values. (CVE-2015-5180)
The following bugs are resolved with this release:
[4099] stdio: Overly agressive caching by stream i/o functions. [7065] build: Support building glibc with -fstack-protector or -fstack-protector-all [9842] localedata: en_CA: incorrect date format [13165] nptl: pthread_cond_wait() can consume a signal that was sent before it started waiting [14139] manual: Do not hardcode platform names in manual/libm-err-tab.pl [15765] nptl: sem_open is wrongly a cancellation point [16421] network: IN6_IS_ADDR_UNSPECIFIED can use undefined s6_addr32 [16458] libc: endian.h and netinet/in.h byte order macros return values of wrong type [16628] dynamic-link: Segfault after a binary without pthread dlopen()s a library linked with pthread [16630] nptl: Use SYSENTER for pthread_cond_broadcast/signal() (i.e. fix "FIXME: Ingo" issue) [16907] libc:
versions [20116] nptl: use after free in pthread_create [20181] stdio: open_memstream(): writes not at end of stream corrupt data [20292] dynamic-link: Comparison in elf/dl-open.c _dl_addr_inside_object is always true. [20311] nptl: please install proc_service.h [20366] libc: Compilation errors in installed headers in strict-compliance modes [20370] malloc: malloc: Arena free list management is still racy (incorrect fix in bug 19243) [20386] libc: assert (X = 0) does not result in GCC warning [20432] malloc: malloc: Minimize interface required for interposition [20435] libc: Missing unwind info in __startcontext causes infinite loop in _Unwind_Backtrace (CVE-2016-6323) [20444] hurd: recvmsg: PF_LOCAL sockets and msg_name lead to SIGLOST [20452] nptl: Addition of sysdep.o to libpthread.a breaks relinking libpthread.a [20455] math: [powerpc] fesetexceptflag fails to clear FE_INVALID [20459] localedata: et_EE: locale has wrong {p,n}_cs_precedes value [20477] network: resolv: incorrect double-checked locking related to _res_hconf [20478] libc: libc_ifunc macro and similar usages leads to false debug-information. [20495] math: x86_64 performance degradation due to AVX/SSE transition penalty [20497] localedata: lt_LT: LC_TIME d_fmt used is obsolete [20508] dynamic-link: _dl_runtime_resolve_avx/_dl_runtime_profile_avx512 cause transition penalty [20517] math: sparcv9 missing fdiml compat symbol [20524] manual: strverscmp is inconsistent [20525] libc:
db0242e Update for 2.25 release
ChangeLog | 4 ++++
include/features.h | 2 +-
version.h | 4 ++--
3 files changed, 7 insertions(+), 3 deletions(-)
Upstream: sourceware.org