Commit Graph

31815 Commits

Author SHA1 Message Date
Akhilesh Kumar
babbf7552a New locale for bi_VU
[BZ #21767]
	* locales/bi_VU: new file.
	* localedata/SUPPORTED: Add bi_VU/UTF-8.
2017-07-14 08:25:43 +02:00
Akhilesh Kumar
1b01a199eb Added yesstr and nostr for aa_ET
[BZ #21768]
	* locales/aa_ET (LC_MESSAGES): Added yesstr and nostr.
2017-07-14 08:25:43 +02:00
Mike FABIAN
0a3bba389f Fix wrong bug number in localedata/ChangeLog
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
2017-07-14 08:25:43 +02:00
Jiong Wang
5ba6405338 [ARM] Fix ld.so crash when built using Binutils 2.29
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-13 15:48:41 +01:00
Akhilesh Kumar
1dd577fd33 Added Tongan language locale for Tonga
[BZ #21728]
	* localedata/locales/to_TO: new file
	* localedata/SUPPORTED: added to_TO/UTF-8
2017-07-13 09:46:44 +02:00
Akhilesh Kumar
edf96fe981 Added yesstr/nostr and fix yesexpr for pap_AW and pap_CW
[BZ #21757]
	* locales/pap_AW (LC_MESSAGES): add yesstr and nostr, fix yesexpr
	* locales/pap_CW (LC_MESSAGES): add yesstr and nostr, fix yesexpr
2017-07-13 09:46:44 +02:00
Akhilesh Kumar
704eab2238 Fix LC_MESSAGES and LC_ADDRESS for anp_IN
[BZ #21760]
	* locales/anp_IN (LC_MESSAGES): add yesstr and nostr.
	* locales/anp_IN (LC_ADDRESS): add country_name
2017-07-13 09:46:44 +02:00
Akhilesh Kumar
a325060c12 Added yesstr and nostr for Tigrinya
[BZ #21759]
	* locales/ti_ER (LC_MESSAGES): Add yesstr and nostr.
	* locales/ti_ET (LC_MESSAGES): Add yesstr and nostr.
2017-07-13 09:46:44 +02:00
Mike FABIAN
56e51ffc00 locales/om_ET (LC_MESSAGES): add yesstr and nostr. 2017-07-13 09:46:44 +02:00
Akhilesh Kumar
b5031c4c82 Added yesstr/nostr for nds_DE and nds_NL
[BZ #21756]
	* locales/nds_DE (LC_MESSAGES): Add yesstr and nostr.
	* locales/nds_NL (LC_MESSAGES): Add yesstr and nostr.
2017-07-13 09:46:44 +02:00
Akhilesh Kumar
64bdd005b2 Added Fiji Hindi language locale for Fiji
[BZ #21207]
	* locales/hif_FJ: New file.
	* SUPPORTED: Add hif_FJ/UTF-8.
	* locale/iso-639.def: Add Fiji Hindi (hif).
2017-07-13 09:46:44 +02:00
John David Anglin
27f29b2dad Fix type in sysdeps/hppa/dl-machine.h. 2017-07-12 20:02:45 -04:00
H.J. Lu
06164c6773 Compile tst-ssp-1.c with -fstack-protector-all
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-12 07:53:09 -07:00
Chris Leonard
30200427a9 New locale for agr_PE.
[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-12 09:08:44 +02:00
Akhilesh Kumar
a058c7c839 Added Samoan language locale for Samoa
[BZ #21710]
	* locales/sm_WS: New file.
	* SUPPORTED: Add sm_WS/UTF-8.
2017-07-12 09:08:10 +02:00
Gabriel F. T. Gomes
4de0cb2e9a powerpc64le: Iterate over all object suffixes when appending -mfloat128
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-11 14:02:10 -03:00
H.J. Lu
ed421fca42 Avoid backtrace from __stack_chk_fail [BZ #12189]
__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-11 07:44:14 -07:00
Adhemerval Zanella
94070f86c0 posix: Add p{read,write}v2 RWF_NOWAIT flag (BZ#21738)
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.
2017-07-11 11:06:44 -03:00
Akhilesh Kumar
2a91300176 Fixed abday for ar_JO/ar_LB/ar_SY
[BZ #21749]
	* locales/ar_JO (LC_TIME): Fix abday
	* locales/ar_LB (LC_TIME): Fix abday
	* locales/ar_SY (LC_TIME): Fix abday
2017-07-11 13:14:34 +02:00
Akhilesh Kumar
7593c977aa Fix abday for ar_SA
[BZ #21748, BZ #19066]
        * locales/ar_SA (LC_TIME): Fix abday
2017-07-11 12:55:16 +02:00
Stefan Liebler
2c80445787 S390: Fix tst-ptrace-singleblock if kernel does not support PTRACE_SINGLEBLOCK.
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.
2017-07-11 10:38:44 +02:00
Eyolf Østrem
38eea35ca7 localedata: da_DK: set date_fmt [BZ #17297]
The default setting is slightly off for Danish users -- the day and
month displays should be swapped: "Jun 10" -> "10 Jun".
2017-07-11 10:15:45 +02:00
Akhilesh Kumar
43a9f537fc Added yesstr and nostr to zh_HK locale
yesstr and nostr  are missing for zh_HK language locale

	[BZ #21733]
	* locales/zh_HK (LC_MESSAGES): add yesstr and nostr
2017-07-10 15:39:37 +02:00
Akhilesh Kumar
de47eab02a Fix abday strings for ks_IN@devanagari to match the day strings
Hindi language is similar to Kashmiri(devanagari) language.

	[BZ #21743]
	* locales/ks_IN@devanagari (LC_TIME): Fixed abday strings
2017-07-10 15:39:37 +02:00
H.J. Lu
eb73083e5e Don't include _dl_resolve_conflicts in libc.a [BZ #21742]
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.
2017-07-10 05:16:40 -07:00
H.J. Lu
7a499756ab x86-64: Test memmove_chk and memset_chk only in libc.so [BZ #21741]
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.
2017-07-10 04:44:38 -07:00
Mike FABIAN
5fa205d485 Add iI and eE to yesexpr and noexpr respectively for ts_ZA 2017-07-10 09:02:24 +02:00
John David Anglin
2e783eb905 Update hppa ulps. 2017-07-09 15:22:41 -04:00
John David Anglin
c5f70682a5 Use generic pthread support on hppa. 2017-07-09 15:01:11 -04:00
H.J. Lu
58d021c836 x86-64: Update comments in IFUNC selectors
* 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.
2017-07-09 11:43:20 -07:00
H.J. Lu
4df54c89bb x86-64: Update comments in ifunc-impl-list.c
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.
2017-07-09 11:38:37 -07:00
John David Anglin
7023e6db99 Fix BZ #21049. 2017-07-09 13:48:04 -04:00
Andreas Schwab
218bb835cd build-many-glibcs.py: also build profiled objects 2017-07-08 21:09:03 +02:00
Akhilesh Kumar
51e945a8f9 Added yesstr/nostr for kw_GB
[BZ #21734]
	* locales/kw_GB (LC_MESSAGES): add yesstr and nostr
2017-07-07 17:16:47 +02:00
Akhilesh Kumar
60e6738932 Added missing yesstr and nostr for Tsonga language locale [LC_MESSAGES]
[BZ #21727]
	* locales/ts_ZA(LC_MESSAGES): add yesstr and nostr

Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
2017-07-07 17:16:47 +02:00
Akhilesh Kumar
42c1c0e7f5 Fix LC_NAME for hi_IN
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>
2017-07-07 13:28:55 +02:00
Akhilesh Kumar
254bdaeb06 yesstr/nostr missing for Xhosa language locale
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>
2017-07-07 12:59:38 +02:00
Peng Wu
c58ba95be9 Add yesstr and nostr to zh_CN locale
[BZ #21723]
	* locales/zh_CN (LC_MESSAGES): add yesstr and nostr
2017-07-07 12:59:22 +02:00
Akhilesh Kumar
bc6bd727cd Incorrect Full Weekday names for ks_IN@devanagari
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>
2017-07-07 11:00:49 +02:00
DJ Delorie
be8aa923a7 * manual/tunables.texi: Add missing @end deftp. 2017-07-06 19:54:13 -04:00
Florian Weimer
9f5a127131 resolv: Deal with non-deterministic address order in tst-resolv-basic 2017-07-06 22:55:53 +02:00
DJ Delorie
d5c3fafc43 Add per-thread cache to malloc
* 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.
2017-07-06 13:37:30 -04:00
Joseph Myers
3cefdd7310 Increase some test timeouts.
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.
2017-07-06 17:01:03 +00:00
Rafal Luzynski
1bea5858dd Arabic scripts: More fixes after the recent import.
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.
2017-07-06 15:49:35 +02:00
Matthew Krupcale
3adfef7eaa nptl: Fix typo on __have_pthread_attr_t (BZ#21715)
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.
2017-07-06 10:27:24 -03:00
H.J. Lu
031e519c95 x86-64: Align the stack in __tls_get_addr [BZ #21609]
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.
2017-07-06 04:43:20 -07:00
Akhilesh Kumar
0cae0b1a28 Pashto yesstr/nostr locale are missing
[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.
2017-07-06 09:34:58 +02:00
Adhemerval Zanella
db6b2f2522 posix: Fix default posix_spawn return value
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.
2017-07-05 15:58:31 -03:00
Carlos O'Donell
b8e0e03b7c Fixup localedata/ChangeLog.
- Rewrite recent entry to follow GNU ChangeLog format.
- Convert spaces to tabs in one case.
2017-07-05 14:14:44 -04:00
Joseph Myers
8d6cba414a Edit and shorten float128 NEWS item. 2017-07-05 17:44:26 +00:00