about summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* Fix type in sysdeps/hppa/dl-machine.h.John David Anglin2017-07-122-1/+5
|
* Compile tst-ssp-1.c with -fstack-protector-allH.J. Lu2017-07-122-1/+6
| | | | | | | | 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.
* New locale for agr_PE.Chris Leonard2017-07-125-0/+224
| | | | | | | | | [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.
* Added Samoan language locale for SamoaAkhilesh Kumar2017-07-123-0/+230
| | | | | | [BZ #21710] * locales/sm_WS: New file. * SUPPORTED: Add sm_WS/UTF-8.
* powerpc64le: Iterate over all object suffixes when appending -mfloat128Gabriel F. T. Gomes2017-07-112-4/+16
| | | | | | | | | | | | | 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.
* Avoid backtrace from __stack_chk_fail [BZ #12189]H.J. Lu2017-07-118-11/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | __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.
* posix: Add p{read,write}v2 RWF_NOWAIT flag (BZ#21738)Adhemerval Zanella2017-07-114-10/+18
| | | | | | | | | | | | | | 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.
* Fixed abday for ar_JO/ar_LB/ar_SYAkhilesh Kumar2017-07-114-21/+28
| | | | | | | [BZ #21749] * locales/ar_JO (LC_TIME): Fix abday * locales/ar_LB (LC_TIME): Fix abday * locales/ar_SY (LC_TIME): Fix abday
* Fix abday for ar_SAAkhilesh Kumar2017-07-112-7/+12
| | | | | [BZ #21748, BZ #19066] * locales/ar_SA (LC_TIME): Fix abday
* S390: Fix tst-ptrace-singleblock if kernel does not support PTRACE_SINGLEBLOCK.Stefan Liebler2017-07-112-2/+57
| | | | | | | | | | | | | | | | | | The request PTRACE_SINGLEBLOCK was introduced in Linux 3.15. Thus the ptrace call will fail on older kernels. Thus the test is now testing PTRACE_SINGLEBLOCK with data argument pointing to a buffer on stack which is assumed to fail. If the request would be interpreted as PTRACE_GETREGS, then the ptrace call will not fail and the regs are written to buf. If we run with a kernel with support for PTRACE_SINGLEBLOCK a ptrace call with data=NULL, returns zero with no error. If we run with a kernel without support for PTRACE_SINGLEBLOCK a ptrace call with data=NULL reports an error. In the latter case, the test is just continuing with PTRACE_CONT. ChangeLog: * sysdeps/unix/sysv/linux/s390/tst-ptrace-singleblock.c: Support running on kernels without PTRACE_SINGLEBLOCK.
* localedata: da_DK: set date_fmt [BZ #17297]Eyolf Østrem2017-07-111-0/+3
| | | | | The default setting is slightly off for Danish users -- the day and month displays should be swapped: "Jun 10" -> "10 Jun".
* Added yesstr and nostr to zh_HK localeAkhilesh Kumar2017-07-102-0/+7
| | | | | | | yesstr and nostr are missing for zh_HK language locale [BZ #21733] * locales/zh_HK (LC_MESSAGES): add yesstr and nostr
* Fix abday strings for ks_IN@devanagari to match the day stringsAkhilesh Kumar2017-07-102-7/+12
| | | | | | | Hindi language is similar to Kashmiri(devanagari) language. [BZ #21743] * locales/ks_IN@devanagari (LC_TIME): Fixed abday strings
* Don't include _dl_resolve_conflicts in libc.a [BZ #21742]H.J. Lu2017-07-102-2/+8
| | | | | | | | | Since _dl_resolve_conflicts is only used in elf/rtld.c, don't include it in libc.a. [BZ #21742] * elf/Makefile (dl-routines): Move dl-conflict to ... (rtld-routines): Here.
* x86-64: Test memmove_chk and memset_chk only in libc.so [BZ #21741]H.J. Lu2017-07-102-0/+11
| | | | | | | | | | 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/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Test memmove_chk and memset_chk only in libc.so.
* Add iI and eE to yesexpr and noexpr respectively for ts_ZAMike FABIAN2017-07-102-2/+6
|
* Update hppa ulps.John David Anglin2017-07-092-50/+56
|
* Use generic pthread support on hppa.John David Anglin2017-07-099-382/+42
|
* x86-64: Update comments in IFUNC selectorsH.J. Lu2017-07-0917-21/+35
| | | | | | | | | | | | | | | | | | | * sysdeps/x86_64/multiarch/memcmp.c: Update comments. * sysdeps/x86_64/multiarch/memmove.c: Likewise. * sysdeps/x86_64/multiarch/memrchr.c: Likewise. * sysdeps/x86_64/multiarch/memset.c: Likewise. * sysdeps/x86_64/multiarch/rawmemchr.c: Likewise. * sysdeps/x86_64/multiarch/strchrnul.c: Likewise. * sysdeps/x86_64/multiarch/strlen.c: Likewise. * sysdeps/x86_64/multiarch/strnlen.c: Likewise. * sysdeps/x86_64/multiarch/wcschr.c: Likewise. * sysdeps/x86_64/multiarch/wcscpy.c: Likewise. * sysdeps/x86_64/multiarch/wcslen.c: Likewise. * sysdeps/x86_64/multiarch/wcsnlen.c: Likewise. * sysdeps/x86_64/multiarch/wmemchr.c: Likewise. * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise. * sysdeps/x86_64/multiarch/wmemset.c: Likewise. * sysdeps/x86_64/multiarch/wmemset_chk.c: Likewise.
* x86-64: Update comments in ifunc-impl-list.cH.J. Lu2017-07-092-16/+20
| | | | | | | All x86-64 IFUNC selectors are written in C now. Update comments to reflect it. * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update comments.
* Fix BZ #21049.John David Anglin2017-07-092-4/+13
|
* build-many-glibcs.py: also build profiled objectsAndreas Schwab2017-07-082-0/+6
|
* Added yesstr/nostr for kw_GBAkhilesh Kumar2017-07-072-0/+7
| | | | | [BZ #21734] * locales/kw_GB (LC_MESSAGES): add yesstr and nostr
* Added missing yesstr and nostr for Tsonga language locale [LC_MESSAGES]Akhilesh Kumar2017-07-072-0/+10
| | | | | | | [BZ #21727] * locales/ts_ZA(LC_MESSAGES): add yesstr and nostr Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
* Fix LC_NAME for hi_INAkhilesh Kumar2017-07-072-5/+9
| | | | | | | | | During Hindi Locale review I found many fields are incorrect [BZ #21729] * locales/hi_IN (LC_NAME): Fix name_mr, name_mrs, name_miss, name_ms Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
* yesstr/nostr missing for Xhosa language localeAkhilesh Kumar2017-07-072-0/+7
| | | | | | | | | | | During Locale verification I observed that yesstr and nostr are missing for Xhosa language locale for South Africa [BZ #21724] * locales/xh_ZA (LC_MESSAGES): add yesstr and nostr Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
* Add yesstr and nostr to zh_CN localePeng Wu2017-07-072-0/+7
| | | | | [BZ #21723] * locales/zh_CN (LC_MESSAGES): add yesstr and nostr
* Incorrect Full Weekday names for ks_IN@devanagariAkhilesh Kumar2017-07-072-7/+16
| | | | | | | | | | | | | | During Locale verification I observed that Incorrect Full Weekday names for ks_IN@devanagari Reference is taken from http://www.mkraina.com/PDF/3-Self-authored%20Works%20(English)/15.pdf And kashmiri devanagari travel book and other sources [BZ #21721] * locales/ks_IN@devanagari: Full weekday name Fix. Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
* * manual/tunables.texi: Add missing @end deftp.DJ Delorie2017-07-062-1/+6
|
* resolv: Deal with non-deterministic address order in tst-resolv-basicFlorian Weimer2017-07-062-15/+69
|
* Add per-thread cache to mallocDJ Delorie2017-07-0613-9/+490
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * config.make.in: Enable experimental malloc option. * configure.ac: Likewise. * configure: Regenerate. * manual/install.texi: Document it. * INSTALL: Regenerate. * malloc/Makefile: Likewise. * malloc/malloc.c: Add per-thread cache (tcache). (tcache_put): New. (tcache_get): New. (tcache_thread_freeres): New. (tcache_init): New. (__libc_malloc): Use cached chunks if available. (__libc_free): Initialize tcache if needed. (__libc_realloc): Likewise. (__libc_calloc): Likewise. (_int_malloc): Prefill tcache when appropriate. (_int_free): Likewise. (do_set_tcache_max): New. (do_set_tcache_count): New. (do_set_tcache_unsorted_limit): New. * manual/probes.texi: Document new probes. * malloc/arena.c: Add new tcache tunables. * elf/dl-tunables.list: Likewise. * manual/tunables.texi: Document them. * NEWS: Mention the per-thread cache.
* Increase some test timeouts.Joseph Myers2017-07-067-3/+14
| | | | | | | | | | | | | | | This patch increases the timeouts for some tests that I've seen timing out on slow systems in my 2.26 release testing. (In the case of tst-tsearch.c, increasing the timeout means removing a setting of 10 that was put there before the default timeout was increased to 20 seconds, so putting the default into effect.) * iconvdata/tst-loading.c (TIMEOUT): Define to 30. * misc/tst-tsearch.c (TIMEOUT): Remove. * nptl/tst-create-detached.c (TIMEOUT): Define to 100. * nptl/tst-robust-fork.c (TIMEOUT): Likewise. * nptl/tst-rwlock19.c (TIMEOUT): Likewise. * string/tst-cmp.c (TIMEOUT): Define to 600.
* Arabic scripts: More fixes after the recent import.Rafal Luzynski2017-07-0614-80/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After the recent import of month names from CLDRv31 (bug 21217, commit c853f14) more imports are also needed, mostly abbreviated month names. This patch also updates May (full month name) in ps_AF which was skipped in the previous patch. Incidentally, this import fixes bug 17225 (ar_SY) and partially bug 19066 (ar_SA). CLDR currently has a bug in the full month name for October for ar_IQ, see http://unicode.org/cldr/trac/ticket/10460 * localedata/locales/ar_DZ (abmon): Full import from CLDR, abmon is no longer abbreviated. * localedata/locales/ar_IQ (abmon): Likewise. * localedata/locales/ar_MA (abmon): Likewise. * localedata/locales/ar_TN (abmon): Likewise. * localedata/locales/ps_AF (abmon): Likewise. * localedata/locales/ug_CN (abmon): Likewise. * localedata/locales/ar_SA (abmon): Likewise, partially fixes bug 19066. * localedata/locales/ks_IN (abmon): A copy of mon. * localedata/locales/ur_IN (abmon): Oct reworded "اكتوبر" to "اکتوبر" (same change as mon). * localedata/locales/ur_PK (abmon): Same changes as mon applied. * localedata/locales/ps_AF (mon): May reworded "می" to "مۍ". [BZ #17225] * localedata/locales/ar_SY (abmon): May reworded "نوار" to "أيار", this closes bug 17225. * localedata/locales/ar_JO (abmon): Likewise. * localedata/locales/ar_LB (abmon): Likewise.
* nptl: Fix typo on __have_pthread_attr_t (BZ#21715)Matthew Krupcale2017-07-062-1/+7
| | | | | | | | | | | This patch fixes some build issues when including types/sigevent_t.h along with bits/pthreadtypes.h. Checked on x86_64-linux-gnu and on a build on supported major ABIs. [BZ #21715] * sysdeps/nptl/bits/pthreadtypes.h (__have_pthread_attr_t): Fix typo on definition.
* x86-64: Align the stack in __tls_get_addr [BZ #21609]H.J. Lu2017-07-067-2/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | This change forces realignment of the stack pointer in __tls_get_addr, so that binaries compiled by GCCs older than GCC 4.9: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58066 continue to work even if vector instructions are used in glibc which require the ABI stack realignment. __tls_get_addr_slow is added to handle the slow paths in the default implementation of__tls_get_addr in elf/dl-tls.c. The new __tls_get_addr calls __tls_get_addr_slow after realigning the stack. Internal calls within ld.so go directly to the default implementation of __tls_get_addr because they do not need stack realignment. [BZ #21609] * sysdeps/x86_64/Makefile (sysdep-dl-routines): Add tls_get_addr. (gen-as-const-headers): Add rtld-offsets.sym. * sysdeps/x86_64/dl-tls.c: New file. * sysdeps/x86_64/rtld-offsets.sym: Likwise. * sysdeps/x86_64/tls_get_addr.S: Likewise. * sysdeps/x86_64/dl-tls.h: Add multiple inclusion guards. * sysdeps/x86_64/tlsdesc.sym (TI_MODULE_OFFSET): New. (TI_OFFSET_OFFSET): Likwise.
* Pashto yesstr/nostr locale are missingAkhilesh Kumar2017-07-062-0/+7
| | | | | | | | | [BZ #21711] During Locale verification I observed that yesstr and nostr are missing for Pashto [LC_MESSAGES] Locale For Afghanistan reference google translate and Pashto travel book.
* posix: Fix default posix_spawn return valueAdhemerval Zanella2017-07-052-20/+25
| | | | | | | | | | | | This patch fix the return value for error conditions for default posix_spawn (where the errno is expected). It also avoid clobber errno on fork call. Checked on x86_64 (with Linux implementation removed). [BZ# 21697] * sysdeps/posix/spawni.c (__spawni_child): Fix return value. (__spawnix): Do not clober errno.
* Fixup localedata/ChangeLog.Carlos O'Donell2017-07-051-6/+9
| | | | | - Rewrite recent entry to follow GNU ChangeLog format. - Convert spaces to tabs in one case.
* Edit and shorten float128 NEWS item.Joseph Myers2017-07-051-93/+14
|
* support: Add resolver testing mode which does not patch _resFlorian Weimer2017-07-055-3/+549
|
* support: Add support_chroot_create and support_chroot_freeFlorian Weimer2017-07-055-47/+140
|
* support: Check isolation of loopback addresses in tst-support-namespaceFlorian Weimer2017-07-052-2/+88
|
* Added Tok-Pisin locale.Akhilesh Kumar2017-07-053-0/+223
| | | | | | | [BZ #21694] Added tok-pisin language locale for Papua New Guinea. Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
* Consistently say "GNU C Library" in NEWS, not "glibc".Joseph Myers2017-07-051-20/+20
|
* Reorganize and revise NEWS for 2.26.Zack Weinberg2017-07-051-135/+144
|
* For Breton yesstr/nostr locale are missingAkhilesh Kumar2017-07-042-0/+7
| | | | | | | | [BZ #21706] During Locale verification i observed that yesstr and nostr are missing for Breton [LC_MESSAGES] locale Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
* Single threaded stdio optimizationSzabolcs Nagy2017-07-0415-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Locking overhead can be significant in some stdio operations that are common in single threaded applications. This patch adds the _IO_FLAGS2_NEED_LOCK flag to indicate if an _IO_FILE object needs to be locked and some of the stdio functions just jump to their _unlocked variant when not. The flag is set on all _IO_FILE objects when the first thread is created. A new GLIBC_PRIVATE libc symbol, _IO_enable_locks, was added to do this from libpthread. The optimization can be applied to more stdio functions, currently it is only applied to single flag check or single non-wide-char standard operations. The flag should probably be never set for files with _IO_USER_LOCK, but that's just a further optimization, not a correctness requirement. The optimization is valid in a single thread because stdio operations are non-as-safe (so lock state is not observable from a signal handler) and stdio locks are recursive (so lock state is not observable via deadlock). The optimization is not valid if a thread may be created while an stdio lock is taken and thus it should be disabled if any user code may run during an stdio operation (interposed malloc, printf hooks, etc). This makes the optimization more complicated for some stdio operations (e.g. printf), but those are bigger and thus less important to optimize so this patch does not try to do that. * libio/libio.h (_IO_FLAGS2_NEED_LOCK, _IO_need_lock): Define. * libio/libioP.h (_IO_enable_locks): Declare. * libio/Versions (_IO_enable_locks): New symbol. * libio/genops.c (_IO_enable_locks): Define. (_IO_old_init): Initialize flags2. * libio/feof.c.c (_IO_feof): Avoid locking when not needed. * libio/ferror.c (_IO_ferror): Likewise. * libio/fputc.c (fputc): Likewise. * libio/putc.c (_IO_putc): Likewise. * libio/getc.c (_IO_getc): Likewise. * libio/getchar.c (getchar): Likewise. * libio/ioungetc.c (_IO_ungetc): Likewise. * nptl/pthread_create.c (__pthread_create_2_1): Enable stdio locks. * libio/iofopncook.c (_IO_fopencookie): Enable locking for the file. * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
* sysconf: Use conservative default for _SC_NPROCESSORS_ONLN [BZ #21542]Florian Weimer2017-07-044-2/+109
|
* resolv: Fix resolv_conf _res matchingFlorian Weimer2017-07-043-5/+61
| | | | | | | | A dot-less host name without an /etc/resolv.conf file caused an assertion failure in update_from_conf because the function would not deal correctly with the empty search list case. Thanks to Andreas Schwab for debugging assistence.
* Update versions in build-many-glibcs.py.Joseph Myers2017-07-042-3/+9
| | | | | | | | | This patch updates build-many-glibcs.py to use the current release branch of binutils and current releases of GMP and the Linux kernel. * scripts/build-many-glibcs.py (Context.checkout): Default binutils version to 2.29 branch, GMP version to 6.1.2 and Linux kernel version to 4.12.