aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
2017-07-27Minor improvements to new az_IR localeMike FABIAN1-0/+4
* locales/az_IR (LC_MESSAGES): Improve yesexpr and noexpr. * locales/az_IR (LC_ADDRESS): Fix typo in comment and use the individual iso-639-3 code for South Azerbaijani "azb" in lang_term. * locales/az_IR (LC_NAME): Improve readability of name_fmt in source.
2017-07-27manual: Refactor documentation of CHAR_BIT.Rical Jasan1-0/+6
This single-@item @table is better defined with @deftypevr, since the CHAR_BIT macro has @standards (being declared in a header), and @items in @tables are not considered annotatable. Using @deftypevr automatically includes the macro in the Variable and Constant Macro Index and ensures its inclusion the Summary of Library Facilities. @deftypevr is used to record the type of the macro so that it also appears in the Summary. The description is updated to mention a later POSIX requirement that this macro have the value 8. * manual/lang.texi (CHAR_BIT): Convert from an @table to an @deftypevr. Change standard from ISO to C90. Mention the POSIX.1-2001 requirement of the value 8.
2017-07-27manual: Complete @standards in creature.texi.Rical Jasan1-0/+5
* manual/creature.texi (_REENTRANT): Annotate as obsolete. (_THREAD_SAFE): Likewise.
2017-07-26Update translationsSiddhesh Poyarekar1-0/+9
* po/bg.po: Update translations. * po/cs.po: Likewise. * po/de.po: Likewise. * po/pl.po: Likewise. * po/uk.po: Likewise. * po/vi.po: Likewise.
2017-07-26Add [BZ #21828] to ChangeLogMike FABIAN1-0/+1
2017-07-26Mention in NEWS that the Unicode 10.0.0 update causes user visible changesMike FABIAN1-0/+4
2017-07-26sv: Update translationSiddhesh Poyarekar1-0/+4
2017-07-25zic: Use PRIdMAX to print line numbersSiddhesh Poyarekar1-0/+7
The PRIdLINENUM abstraction is unnecessary and breaks libc.pot generation. * timezone.zic (PRIdLINENO): Remove. (verror): Use PRIdMAX. * po/libc.pot: Regenerate.
2017-07-24tunables: Use direct syscall for access (BZ#21744)Adhemerval Zanella1-0/+10
The function maybe_enable_malloc_check, which is called by __tunables_init, calls __access_noerrno. It isn't problem when symbol is is in ld.so, which has a special version of __access_noerrno without stack protector. But when glibc is built with stack protector, maybe_enable_malloc_check in libc.a can't call the regular version of __access_noerrno with stack protector. This patch changes how Linux defines the __access_noerrno to be an inline call instead and thus preventing defining different build rules for ld/static and shared. H.J. Lu <hongjiu.lu@intel.com> Adhemerval Zanella <adhemerval.zanella@linaro.org> [BZ #21744] * elf/dl-tunables.c: Include not-errno.h header. * include/unistd.h (__access_noerrno): Remove definition. * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise. * sysdeps/generic/not-errno.h: New file. * sysdeps/unix/sysv/linux/not-errno.h: Likewise.
2017-07-24Avoid accessing corrupted stack from __stack_chk_fail [BZ #21752]H.J. Lu1-0/+9
__libc_argv[0] points to address on stack and __libc_secure_getenv accesses environment variables which are on stack. We should avoid accessing stack when stack is corrupted. This patch also renames function argument in __fortify_fail_abort from do_backtrace to need_backtrace to avoid confusion with do_backtrace from enum __libc_message_action. [BZ #21752] * debug/fortify_fail.c (__fortify_fail_abort): Don't pass down __libc_argv[0] if we aren't doing backtrace. Rename do_backtrace to need_backtrace. * sysdeps/posix/libc_fatal.c (__libc_message): Don't call __libc_secure_getenv if we aren't doing backtrace.
2017-07-24Remove extra semicolons in struct pthread_mutex (bug 21804)Andreas Schwab1-0/+12
2017-07-23S390: fix sys/ptrace.h to make it includible again after asm/ptrace.hDmitry V. Levin1-0/+7
sys/ptrace.h on S390 used to be includible both before and after asm/ptrace.h, until commit b08a6a0dea63742313ed3d9577c1e2d83436b196 among other changes introduced PTRACE_SINGLEBLOCK enum constant which is also defined in asm/ptrace.h as a macro, making sys/ptrace.h fail to compile when included after asm/ptrace.h. * sysdeps/unix/sysv/linux/s390/sys/ptrace.h [_LINUX_PTRACE_H || _S390_PTRACE_H]: Undefine all PTRACE_* macro constants defined later as enum constants, except PTRACE_PEEKUSER, PTRACE_POKEUSER, and PTRACE_SEIZE_DEVEL that are not defined by Linux headers.
2017-07-23[BZ 19170]John David Anglin1-0/+5
Revise comment in sysdeps/hppa/dl-trampoline.S
2017-07-21Correct nss/tst-nss-test5 configurationDJ Delorie1-0/+4
The configuration was cloned from test4, but test5 does not have data for a second module.
2017-07-21Fix localedata test builds with latest GCCSteve Ellcey1-0/+8
* localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c, CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c, CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c, CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): New macros.
2017-07-21Fix nss/nss_test1.c compile with latest GCC.Steve Ellcey1-0/+4
* nss/nss_test1.c (default_npwd_data): Fix definition.
2017-07-21Fix cexpl when compiled with latest GCCSteve Ellcey1-0/+5
* sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Call math_force_eval.
2017-07-19Update sparc ulpsAdhemerval Zanella1-0/+2
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2017-07-19alpha: Fix clone exit syscall argument passing (BZ#21512)Adhemerval Zanella1-0/+5
This patch fixes the argument passing for exit syscall after the clone function returns on hppa. This fixes misc/tst-clone2 on alpha-linux-gnu. Checked misc/tst-clone2 on alpha-linux-gnu. [BZ #21512] * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Fix argument passing to syscall exit.
2017-07-19Fix cast-after-dereferenceDJ Delorie1-0/+4
Original code was dereferencing a char*, then casting the value to size_t. Should cast the pointer to size_t* then deference.
2017-07-19i386: Test memmove_chk and memset_chk only in libc.so [BZ #21741]H.J. Lu1-0/+7
Since there are no multiarch versions of memmove_chk and memset_chk, test multiarch versions of memmove_chk and memset_chk only in libc.so. [BZ #21741] * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Test memmove_chk and memset_chk only in libc.so.
2017-07-19Don't add stack_chk_fail_local.o to libc.a [BZ #21740]H.J. Lu1-0/+5
commit 524a8ef2ad76af8ac049293d993a1856b0d888fb Author: Nick Alcock <nick.alcock@oracle.com> Date: Mon Dec 26 10:08:57 2016 +0100 PLT avoidance for __stack_chk_fail [BZ #7065] Add a hidden __stack_chk_fail_local alias to libc.so, and make sure that on targets which use __stack_chk_fail, this does not introduce a local PLT reference into libc.so. which unconditionally added strong_alias (__stack_chk_fail, __stack_chk_fail_local) defines __stack_chk_fail_local as an alias of __stack_chk_fail in libc.a. There is no need to add stack_chk_fail_local.o to libc.a. We only need to add stack_chk_fail_local.oS to libc_nonshared.a. Tested on x86-64: [hjl@gnu-skl-1 build-x86_64-linux]$ nm libc.a | grep __stack_chk_fail 0000000000000000 T __stack_chk_fail 0000000000000000 T __stack_chk_fail_local [hjl@gnu-skl-1 build-x86_64-linux]$ nm libc_nonshared.a | grep __stack_chk_fail_local 0000000000000000 T __stack_chk_fail_local [hjl@gnu-skl-1 build-x86_64-linux]$ [BZ #21740] * debug/Makefile (elide-routines.o): New.
2017-07-19[AArch64] Update dl-procinfo for new HWCAP flags in Linux 4.12Szabolcs Nagy1-0/+7
Follow up to commit 512d245bc30cca893db6979f42f058e734f345c3. * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c: (_dl_aarch64_cap_flags): Update. * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_HWCAP_LAST): Update.
2017-07-18[AArch64] Fix out of bound array access regressionSzabolcs Nagy1-0/+5
Partially revert ea01a4da219011f4a4db97eef3c5bfc2f6e8fc6b "aarch64: Add hwcap string routines" because _dl_procinfo cannot be future proof and avoid oob access in _dl_hwcap_string.
2017-07-17powerpc: Fix float128 IFUNC relocations [BZ #21707]Tulio Magno Quites Machado Filho1-0/+27
The patch proposed by Peter Bergner [1] to libgcc in order to fix [BZ #21707] adds a dependency on a symbol provided by the loader, forcing the loader to be linked to tests after libgcc was linked. It also requires to read the thread pointer during IRELA relocations. Tested on powerpc, powerpc64, powerpc64le, s390x and x86_64. [1] https://sourceware.org/ml/libc-alpha/2017-06/msg01383.html [BZ #21707] * csu/libc-start.c (LIBC_START_MAIN): Perform IREL{,A} relocations before or after initializing the TCB on statically linked executables. That's a per-architecture definition. * elf/rtld.c (dl_main): Add a comment about thread-local variables initialization. * sysdeps/generic/libc-start.h: New file. Define ARCH_APPLY_IREL and ARCH_SETUP_IREL. * sysdeps/powerpc/Makefile: [$(subdir) = elf && $(multi-arch) != no] (tests-static-internal): Add tst-tlsifunc-static. [$(subdir) = elf && $(multi-arch) != no && $(build-shared) == yes] (tests-internal): Add tst-tlsifunc. * sysdeps/powerpc/tst-tlsifunc.c: New file. * sysdeps/powerpc/tst-tlsifunc-static.c: Likewise. * sysdeps/powerpc/powerpc64le/Makefile (f128-loader-link): New variable. [$(subdir) = math] (test-float128% test-ifloat128%): Force linking to the loader after linking to libgcc. [$(subdir) = wcsmbs || $(subdir) = stdlib] (bug-strtod bug-strtod2) (bug-strtod2 tst-strtod-round tst-wcstod-round tst-strtod6 tst-strrom) (tst-strfrom-locale strfrom-skeleton): Likewise. * sysdeps/unix/sysv/linux/powerpc/libc-start.h: New file. Define ARCH_APPLY_IREL and ARCH_SETUP_IREL.
2017-07-17Extend NSS test suiteDJ Delorie1-0/+15
* nss/nss_test.h: New. * nss/nss_test1.h: Rewrite to use test-provided data. Add group tests. Parameterize to allow multiple instances. * nss/nss_test2.h: New. Second instance. * nss/nss_test.ver: New. * nss/nss_test1.c: Update to use new framework. * nss/nss_test2.c: New. * nss/nss_test3.c: New. * nss/nss_test4.c: New. * nss/nss_test5.c: New. * nss/Makefile: Build new tests. * shlib-versions: Add libnss_test2.
2017-07-17hppa: Fix clone exit syscall argument passing (BZ#21512)Adhemerval Zanella1-0/+6
This patch fixes the argument passing for exit syscall after the clone function returns on hppa. This fixes misc/tst-clone2 on hppa-linux-gnu. Checked misc/tst-clone2 on hppa-linux-gnu. [BZ #21512] * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Fix argument passing to syscall exit.
2017-07-17Add HWCAP_ macros from Linux 4.12 to AArch64 bits/hwcap.h.Szabolcs Nagy1-0/+5
This patch adds the HWCAP_JSCVT, HWCAP_FCMA and HWCAP_LRCPC macros from Linux 4.12 to the AArch64 bits/hwcap.h. * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_FCMA): New macro. (HWCAP_JSCVT, HWCAP_LRCPC): Likewise.
2017-07-16Return to caller if dl_fixup fails to resolve callee on hppa.John David Anglin1-0/+3
2017-07-16Add CFI annotation.John David Anglin1-0/+5
2017-07-16Fix stack offset for r19 load in __getcontext.John David Anglin1-0/+3
2017-07-16Fix __setcontext return value on hppa.John David Anglin1-0/+2
2017-07-16Fix syscall cancellation on hppa.John David Anglin1-0/+23
2017-07-16Remove _exit entry from sysdeps/unix/sysv/linux/hppa/localplt.data.John David Anglin1-0/+2
2017-07-16Remove extra braces from sysdeps/hppa/__longjmp.c.John David Anglin1-0/+2
2017-07-16Fix [BZ 20098].John David Anglin1-0/+8
2017-07-16Regenerate libc.potSiddhesh Poyarekar1-0/+4
2017-07-15Fix [BZ locale/19838].John David Anglin1-0/+3
2017-07-15Fix guard alignment in allocate_stack when stack grows up.John David Anglin1-0/+3
2017-07-15Fix failing sNaN tests on hppa.John David Anglin1-0/+4
2017-07-14Fix BZ #21654 - grp-merge.c alignmentDJ Delorie1-0/+7
* grp/grp_merge.c (__copy_grp): Align char** to minimum pointer alignment not char alignment. (__merge_grp): Likewise.
2017-07-14Disable single thread optimization for open_memstreamSzabolcs Nagy1-0/+7
Single thread optimization is valid if at thread creation time the optimization can be disabled. This is in principle true for all stream objects that user code can access (and thus needs locking), using the same internal list as fflush(0) uses. However in glibc open_memstream is not on that list (BZ 21735) so the optimization has to be disabled. * libio/memstream.c (__open_memstream): Set _IO_FLAGS2_NEED_LOCK. * libio/wmemstream.c (open_wmemstream): Likewise. * nptl/tst-memstream.c: New.
2017-07-13[ARM] Fix ld.so crash when built using Binutils 2.29Jiong Wang1-0/+5
There is bug report that ld.so in GLIBC 2.24 built by Binutils 2.29 will crash on arm-linux-gnueabihf. This is confirmed, and the details is at: https://sourceware.org/bugzilla/show_bug.cgi?id=21725. As analyzed in the PR, the old code was with the assumption that assembler won't set bit0 of thumb function address if it comes from PC-relative instructions and the calculation can be finished during assembling. This assumption however does not hold after PR gas/21458. * sysdeps/arm/dl-machine.h (elf_machine_load_address): Also strip bit 0 of pcrel_address under Thumb mode.
2017-07-13Added Fiji Hindi language locale for FijiAkhilesh Kumar1-0/+5
[BZ #21207] * locales/hif_FJ: New file. * SUPPORTED: Add hif_FJ/UTF-8. * locale/iso-639.def: Add Fiji Hindi (hif).
2017-07-12Fix type in sysdeps/hppa/dl-machine.h.John David Anglin1-0/+4
2017-07-12Compile tst-ssp-1.c with -fstack-protector-allH.J. Lu1-0/+5
Compile tst-ssp-1.c with -fstack-protector-all in case the the stack protector heuristics do not instrument a thirty-byte array. * debug/Makefile (CFLAGS-tst-ssp-1.c): Set to -fstack-protector-all.
2017-07-12New locale for agr_PE.Chris Leonard1-0/+5
[BZ #20496] * locale/iso-639.def: Add Awajún / Aguaruna (agr). [BZ #20496] * SUPPORTED: Add agr_PE. * locales/agr_PE: New file, Awajún / Aguaruna locale for Peru.
2017-07-11powerpc64le: Iterate over all object suffixes when appending -mfloat128Gabriel F. T. Gomes1-0/+6
On powerpc64le, the compilation of the files related to float128 support requires the option -mfloat128 to be passed to gcc. However, not all possible object suffixes were covered in the Makefile. This patch uses $(all-object-suffixes) in all remaining rules. Tested for powerpc64le. * sysdeps/powerpc/powerpc64le/Makefile: Use $(all-object-suffixes) to iterate over all possible object suffixes. Add a comment explaining the use of sysdep-CFLAGS instead of CFLAGS.
2017-07-11Avoid backtrace from __stack_chk_fail [BZ #12189]H.J. Lu1-0/+22
__stack_chk_fail is called on corrupted stack. Stack backtrace is very unreliable against corrupted stack. __libc_message is changed to accept enum __libc_message_action and call BEFORE_ABORT only if action includes do_backtrace. __fortify_fail_abort is added to avoid backtrace from __stack_chk_fail. [BZ #12189] * debug/Makefile (CFLAGS-tst-ssp-1.c): New. (tests): Add tst-ssp-1 if -fstack-protector works. * debug/fortify_fail.c: Include <stdbool.h>. (_fortify_fail_abort): New function. (__fortify_fail): Call _fortify_fail_abort. (__fortify_fail_abort): Add a hidden definition. * debug/stack_chk_fail.c: Include <stdbool.h>. (__stack_chk_fail): Call __fortify_fail_abort, instead of __fortify_fail. * debug/tst-ssp-1.c: New file. * include/stdio.h (__libc_message_action): New enum. (__libc_message): Replace int with enum __libc_message_action. (__fortify_fail_abort): New hidden prototype. * malloc/malloc.c (malloc_printerr): Update __libc_message calls. * sysdeps/posix/libc_fatal.c (__libc_message): Replace int with enum __libc_message_action. Call BEFORE_ABORT only if action includes do_backtrace. (__libc_fatal): Update __libc_message call.
2017-07-11posix: Add p{read,write}v2 RWF_NOWAIT flag (BZ#21738)Adhemerval Zanella1-0/+8
Linux 4.12 (b745fafaf70c0a98a2e1e7ac8cb14542889ceb0e) adds a new p{read,write}v2 flag RWF_NOWAIT. This patch adds it for linux uio-ext.h header. Checked on x86_64-linux-gnu (on a 4.10 kernel). [BZ #21738] * manual/llio.texi (RWF_NOWAIT): New item. * misc/tst-preadvwritev2-common.c (do_test_with_invalid_flags): Add RWF_NOWAIT check. * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_NOWAIT): New flag.