summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Use hidden visibility for HAVE_STATIC_PIEhl/pie/staticH.J. Lu2017-07-181-1/+2
|
* Add _dl_relocate_static_pieH.J. Lu2017-07-186-8/+54
|
* Define pie-default/default-pie-ldflag for --enable-static-pieH.J. Lu2017-07-181-2/+14
| | | | | | 1. Add $(pie-default) to CFLAGS-.o and CFLAGS-.op. 2. Add $(default-pie-ldflag) to +link-static-before-libc. 3. Define +prectorT/+postctorT to $(+prectorS)/$(+postctorS).
* x86-64: Check if linker supports static PIEH.J. Lu2017-07-182-0/+53
| | | | | | | | Need the linker with fix for: https://sourceware.org/bugzilla/show_bug.cgi?id=21782 Binutils 2.29 is OK.
* Add --enable-static-pieH.J. Lu2017-07-183-0/+39
|
* Check if linker supports --no-dynamic-linkerH.J. Lu2017-07-183-0/+50
|
* x86-64: Check PIC instead of SHARED in start.SH.J. Lu2017-07-181-1/+1
| | | | PIC may be the default.
* [AArch64] Fix out of bound array access regressionSzabolcs Nagy2017-07-182-30/+13
| | | | | | Partially revert ea01a4da219011f4a4db97eef3c5bfc2f6e8fc6b "aarch64: Add hwcap string routines" because _dl_procinfo cannot be future proof and avoid oob access in _dl_hwcap_string.
* powerpc: Fix float128 IFUNC relocations [BZ #21707]Tulio Magno Quites Machado Filho2017-07-179-4/+265
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Extend NSS test suiteDJ Delorie2017-07-1712-92/+1201
| | | | | | | | | | | | | | | * 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.
* hppa: Fix clone exit syscall argument passing (BZ#21512)Adhemerval Zanella2017-07-172-1/+7
| | | | | | | | | | | | 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.
* Fix country_name in li_NLAkhilesh Kumar2017-07-172-1/+7
| | | | | [BZ #21770] * locales/li_NL: Fix country_name.
* Use U+02BB MODIFIER LETTER TURNED COMMA instead of U+0027 APOSTROPHE in ↵Mike FABIAN2017-07-172-4/+8
| | | | | | | | yesstr and nostr for to_TO locale Suggested by Rafał Lużyński. * locales/to_TO (LC_MESSAGES): Use U+02BB instead of U+0027 in yesstr and nostr
* Fix yesexpr in new agr_PE localeMike FABIAN2017-07-172-2/+6
| | | | | | | yY should be added there as in (almost) all other locales (Suggested by Rafał Lużyński). * locales/agr_PE (LC_MESSAGES): Add yY to yesexpr.
* Write "Latin" in title case in "title" in hif_FJ localeMike FABIAN2017-07-172-1/+5
| | | | * locales/hif_FJ: Write "Latin" in title case in "title"
* Add HWCAP_ macros from Linux 4.12 to AArch64 bits/hwcap.h.Szabolcs Nagy2017-07-172-0/+8
| | | | | | | | 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.
* Return to caller if dl_fixup fails to resolve callee on hppa.John David Anglin2017-07-162-0/+15
|
* Add CFI annotation.John David Anglin2017-07-165-0/+17
|
* Fix stack offset for r19 load in __getcontext.John David Anglin2017-07-162-1/+4
|
* Fix __setcontext return value on hppa.John David Anglin2017-07-162-1/+3
|
* Fix syscall cancellation on hppa.John David Anglin2017-07-163-39/+46
|
* Remove _exit entry from sysdeps/unix/sysv/linux/hppa/localplt.data.John David Anglin2017-07-162-1/+2
|
* Remove extra braces from sysdeps/hppa/__longjmp.c.John David Anglin2017-07-162-2/+2
|
* Fix [BZ 20098].John David Anglin2017-07-162-18/+54
|
* Regenerate libc.potSiddhesh Poyarekar2017-07-162-551/+548
|
* Fix [BZ locale/19838].John David Anglin2017-07-152-1/+4
|
* Fix guard alignment in allocate_stack when stack grows up.John David Anglin2017-07-152-2/+11
|
* Fix failing sNaN tests on hppa.John David Anglin2017-07-152-0/+26
|
* Fix BZ #21654 - grp-merge.c alignmentDJ Delorie2017-07-142-0/+23
| | | | | | * grp/grp_merge.c (__copy_grp): Align char** to minimum pointer alignment not char alignment. (__merge_grp): Likewise.
* Disable single thread optimization for open_memstreamSzabolcs Nagy2017-07-145-1/+115
| | | | | | | | | | | | | 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.
* Fix country name in li_BE and encoding problem in abday in li_BE and li_NLMike FABIAN2017-07-143-3/+9
| | | | | * locales/li_BE: Fix country name and encoding problem in abday. * locales/li_NL: Fix encoding problem in abday.
* New locale for bi_VUAkhilesh Kumar2017-07-143-0/+221
| | | | | | [BZ #21767] * locales/bi_VU: new file. * localedata/SUPPORTED: Add bi_VU/UTF-8.
* Added yesstr and nostr for aa_ETAkhilesh Kumar2017-07-142-0/+7
| | | | | [BZ #21768] * locales/aa_ET (LC_MESSAGES): Added yesstr and nostr.
* Fix wrong bug number in localedata/ChangeLogMike FABIAN2017-07-141-1/+1
| | | | | | | | | | The commit to add the Fiji Hindi locale mentioned Bug 21207 - ce_RU: update weekdays from CLDR which was wrong, correct is: Bug 21694 - Current Glibc Locale Does Not Support Tok-Pisin and Fiji Hindi Locale
* [ARM] Fix ld.so crash when built using Binutils 2.29Jiong Wang2017-07-132-2/+15
| | | | | | | | | | | | | | | 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.
* Added Tongan language locale for TongaAkhilesh Kumar2017-07-133-0/+216
| | | | | | [BZ #21728] * localedata/locales/to_TO: new file * localedata/SUPPORTED: added to_TO/UTF-8
* Added yesstr/nostr and fix yesexpr for pap_AW and pap_CWAkhilesh Kumar2017-07-133-2/+12
| | | | | | [BZ #21757] * locales/pap_AW (LC_MESSAGES): add yesstr and nostr, fix yesexpr * locales/pap_CW (LC_MESSAGES): add yesstr and nostr, fix yesexpr
* Fix LC_MESSAGES and LC_ADDRESS for anp_INAkhilesh Kumar2017-07-132-0/+9
| | | | | | [BZ #21760] * locales/anp_IN (LC_MESSAGES): add yesstr and nostr. * locales/anp_IN (LC_ADDRESS): add country_name
* Added yesstr and nostr for TigrinyaAkhilesh Kumar2017-07-133-4/+14
| | | | | | [BZ #21759] * locales/ti_ER (LC_MESSAGES): Add yesstr and nostr. * locales/ti_ET (LC_MESSAGES): Add yesstr and nostr.
* locales/om_ET (LC_MESSAGES): add yesstr and nostr.Mike FABIAN2017-07-132-1/+10
|
* Added yesstr/nostr for nds_DE and nds_NLAkhilesh Kumar2017-07-133-0/+10
| | | | | | [BZ #21756] * locales/nds_DE (LC_MESSAGES): Add yesstr and nostr. * locales/nds_NL (LC_MESSAGES): Add yesstr and nostr.
* Added Fiji Hindi language locale for FijiAkhilesh Kumar2017-07-135-0/+228
| | | | | | | [BZ #21207] * locales/hif_FJ: New file. * SUPPORTED: Add hif_FJ/UTF-8. * locale/iso-639.def: Add Fiji Hindi (hif).
* 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