Commit Graph

32035 Commits

Author SHA1 Message Date
Mike FABIAN
95fe8c477f Fix inappropriate escape sequences in LC_IDENTIFICATION in several locales
Found using the script check-localedef.py by Zack Weinberg.

	* locales/aa_DJ (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/aa_ER (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/aa_ET (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/ak_GH (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/bn_BD (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/de_IT (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/es_CU (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/gd_GB (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/gl_ES (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/he_IL (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/hr_HR (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/ht_HT (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/hy_AM (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/lg_UG (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/mai_IN (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/mg_MG (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/pl_PL (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/quz_PE (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/se_NO (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/sl_SI (LC_IDENTIFICATION): Fix inappropriate escape sequence.
	* locales/ta_LK (LC_IDENTIFICATION): Fix inappropriate escape sequence.
2017-07-26 16:47:00 +02:00
Rafal Luzynski
1ac85c13b0 Indian scripts: More fixes after the recent import.
After the recent import of month names from CLDRv31 (bug 21217,
commit c853f14) an import of abbreviated month names is also needed
to make sure they match the full forms.

In case of kok_IN CLDR does not provide the abbreviated month names
explicitly but uses full month names in such cases so abmon section
has been copied from mon.

* localedata/locales/as_IN (abmon): Update from CLDR.
* localedata/locales/bn_BD (abmon): Likewise.
* localedata/locales/bn_IN (abmon): Likewise.
* localedata/locales/gu_IN (abmon): Likewise.
* localedata/locales/hi_IN (abmon): Likewise.
* localedata/locales/kn_IN (abmon): Likewise.
* localedata/locales/ml_IN (abmon): Likewise.
* localedata/locales/mr_IN (abmon): Likewise.
* localedata/locales/ne_NP (abmon): Likewise.
* localedata/locales/or_IN (abmon): Likewise.
* localedata/locales/pa_IN (abmon): Likewise.
* localedata/locales/ta_IN (abmon): Likewise.
* localedata/locales/te_IN (abmon): Likewise.

* localedata/locales/kok_IN (abmon): Likewise but copied from mon.
2017-07-26 16:47:00 +02:00
Siddhesh Poyarekar
a352570d6b Update translations
* 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-26 18:27:41 +05:30
Mike FABIAN
cd5919cb61 Use POSIX Portable Character Set in the new mai_NP locale source file instead of <Uxxxx>
* localedata/locales/mai_NP: Use POSIX Portable Character Set.
2017-07-26 12:25:58 +02:00
Akhilesh Kumar
64d38726e1 Added New Locale mai_NP
Maithili which is an official language not only in India but in Nepal as well.
https://en.wikipedia.org/wiki/Maithili_language
Reference is taken form mai_IN.

	[BZ #21835]
	* localedata/locales/mai_NP: New file.
	* localedata/SUPPORTED: Add mai_NP/UTF-8.
2017-07-26 12:19:53 +02:00
Akhilesh Kumar
a426a65ce8 Removed redundant data for the_NP locale
[BZ #21838]
	* locales/the_NP (LC_CTYPE): copy "ne_NP"
	* locales/the_NP (LC_COLLATE): copy "ne_NP"
	* locales/the_NP (LC_MONETARY): copy "ne_NP"
	* locales/the_NP (LC_TELEPHONE): copy "ne_NP"
2017-07-26 11:23:54 +02:00
Mike FABIAN
3760ff7756 Remove redundant data for LC_MONETARY in sd_IN@devanagari 2017-07-26 11:15:16 +02:00
Akhilesh Kumar
480af555f3 Remove redundant data for LC_MONETARY for Indian locales
[BZ #21836]
	* locales/ar_IN (LC_MONETARY): copy "hi_IN"
	* locales/as_IN (LC_MONETARY): copy "hi_IN"
	* locales/bhb_IN (LC_MONETARY): copy "hi_IN"
	* locales/bn_IN (LC_MONETARY): copy "hi_IN"
	* locales/en_IN (LC_MONETARY): copy "hi_IN"
	* locales/gu_IN (LC_MONETARY): copy "hi_IN"
	* locales/kn_IN (LC_MONETARY): copy "hi_IN"
	* locales/kok_IN (LC_MONETARY): copy "hi_IN"
	* locales/ks_IN (LC_MONETARY): copy "hi_IN"
	* locales/ml_IN (LC_MONETARY): copy "hi_IN"
	* locales/mr_IN (LC_MONETARY): copy "hi_IN"
	* locales/or_IN (LC_MONETARY): copy "hi_IN"
	* locales/pa_IN (LC_MONETARY): copy "hi_IN"
	* locales/sa_IN (LC_MONETARY): copy "hi_IN"
	* locales/sd_IN (LC_MONETARY): copy "hi_IN"
	* locales/ta_IN (LC_MONETARY): copy "hi_IN"
	* locales/tcy_IN (LC_MONETARY): copy "hi_IN"
	* locales/te_IN (LC_MONETARY): copy "hi_IN"
	* locales/ur_IN (LC_MONETARY): copy "hi_IN"
2017-07-26 11:15:15 +02:00
Mike FABIAN
0aa573a44d Add [BZ #21828] to ChangeLog 2017-07-26 08:20:20 +02:00
Mike FABIAN
a0e5259830 Mention in NEWS that the Unicode 10.0.0 update causes user visible changes 2017-07-26 08:17:23 +02:00
Siddhesh Poyarekar
f4ecd7ddc7 sv: Update translation 2017-07-26 07:09:50 +05:30
Akhilesh Kumar
c771b59a24 Fix inconsistency in country_isbn and missing prefixes
[BZ #21797]
	* locales/et_EE (LC_ADDRESS): Fix country_isbn.
	* locales/hy_AM (LC_ADDRESS): Fix country_isbn.
2017-07-25 13:25:18 +02:00
Mike FABIAN
1b768b4897 Add country_name to several locales
* locales/an_ES (LC_ADDRESS): Add country_name.
	* locales/ayc_PE (LC_ADDRESS): Add country_name.
	* locales/be_BY@latin (LC_ADDRESS): Add country_name.
	* locales/dv_MV (LC_ADDRESS): Add country_name,
	country_ab2, and country_ab3
	* locales/ia_FR (LC_ADDRESS): Add country_name.
	* locales/ik_CA (LC_ADDRESS): Add country_name.
	* locales/lij_IT (LC_ADDRESS): Add country_name.
	* locales/mi_NZ (LC_ADDRESS): Add country_name.
	* locales/nds_DE (LC_ADDRESS): Add country_name.
	* locales/nds_NL (LC_ADDRESS): Add country_name.
	* locales/oc_FR (LC_ADDRESS): Add country_name.
	* locales/sa_IN (LC_ADDRESS): Add country_name.
	* locales/sc_IT (LC_ADDRESS): Add country_name.
	* locales/sd_IN (LC_ADDRESS): Add country_name.
	* locales/tcy_IN (LC_ADDRESS): Add country_name.
	* locales/tg_TJ (LC_ADDRESS): Add country_name.
	* locales/tl_PH (LC_ADDRESS): Add country_name.
	* locales/tt_RU (LC_ADDRESS): Add country_name.
	* locales/wo_SN (LC_ADDRESS): Add country_name.
	* locales/zh_SG (LC_ADDRESS): Add country_name.
2017-07-25 12:17:02 +02:00
Akhilesh Kumar
ffe6d539df Fix name_mrs for mag_IN
[BZ #21825]
	* locales/mag_IN(LC_NAME): Fix name_mrs.
2017-07-25 12:17:02 +02:00
Akhilesh Kumar
b0edfa40c6 Added yesstr/nostr for sa_IN
[BZ #21823]
	* locales/sa_IN (LC_MESSAGES): Add yesstr,nostr
2017-07-25 12:17:02 +02:00
Akhilesh Kumar
832f8e0487 Fix LC_TIME for mai_IN
[BZ #21822]
	* locales/mai_IN (LC_TIME): Fix abday, day, mon etc...
2017-07-25 12:17:02 +02:00
Siddhesh Poyarekar
94955362dd zic: Use PRIdMAX to print line numbers
The PRIdLINENUM abstraction is unnecessary and breaks libc.pot
generation.

	* timezone.zic (PRIdLINENO): Remove.
	(verror): Use PRIdMAX.
	* po/libc.pot: Regenerate.
2017-07-25 12:34:14 +05:30
Adhemerval Zanella
95a7339258 tunables: Use direct syscall for access (BZ#21744)
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-24 11:21:07 -03:00
H.J. Lu
422ff87c24 Avoid accessing corrupted stack from __stack_chk_fail [BZ #21752]
__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-24 06:06:24 -07:00
Andreas Schwab
55703fcace Remove extra semicolons in struct pthread_mutex (bug 21804) 2017-07-24 12:22:05 +02:00
Akhilesh Kumar
2a28610f9f Added country_name in mai_IN
[BZ #21821]
	* locales/mai_IN (LC_ADDRESS): Add country_name.
2017-07-24 08:24:29 +02:00
Akhilesh Kumar
fa13514a51 Added country_isbn for Republic of Korea
[BZ #21796]
	* locales/ko_KR (LC_ADDRESS): Add country_isbn.
2017-07-24 08:17:21 +02:00
Akhilesh Kumar
54606ca8c7 Added country_isbn for Italy
[BZ #21794]
	* locales/ca_IT (LC_ADDRESS): Add country_isbn.
	* locales/de_IT (LC_ADDRESS): Add country_isbn.
	* locales/fur_IT (LC_ADDRESS): Add country_isbn.
	* locales/it_IT (LC_ADDRESS): Add country_isbn.
	* locales/lij_IT (LC_ADDRESS): Add country_isbn.
	* locales/sc_IT (LC_ADDRESS): Add country_isbn.
2017-07-24 08:15:39 +02:00
Dmitry V. Levin
cab91f947a S390: fix sys/ptrace.h to make it includible again after asm/ptrace.h
sys/ptrace.h on S390 used to be includible both before and after
asm/ptrace.h, until commit b08a6a0dea
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 23:22:53 +00:00
John David Anglin
64a1daed18 [BZ 19170]
Revise comment in sysdeps/hppa/dl-trampoline.S
2017-07-23 12:50:44 -04:00
DJ Delorie
1740441b49 Correct nss/tst-nss-test5 configuration
The configuration was cloned from test4, but test5 does not
have data for a second module.
2017-07-21 19:50:21 -04:00
Steve Ellcey
6259e62c02 Fix localedata test builds with latest GCC
* 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-21 10:33:30 -07:00
Steve Ellcey
cb62108e74 Fix nss/nss_test1.c compile with latest GCC.
* nss/nss_test1.c (default_npwd_data): Fix definition.
2017-07-21 09:56:13 -07:00
Steve Ellcey
a4c9be1b8b Fix cexpl when compiled with latest GCC
* sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Call
	math_force_eval.
2017-07-21 09:47:57 -07:00
Massimeddu Cireddu
2d9b85e7e7 Fix misspelled yesexpr/day/abday/mon/abmon/date_fmt fields in sc_IT
[BZ #12068]
	* locales/sc_IT (LC_MESSAGES): Fix yesexpr and add yesstr and nostr.
	* locales/sc_IT (LC_TIME): Fix mispelled day/abday/mon/abmon and
	fix date_fmt.
2017-07-21 12:01:29 +02:00
Rafal Luzynski
77046c6153 localedata/locales/lg_UG: Fix some comments.
After the recent update of int_select the comment needed an update, too.
While at this, all comments in LC_TELEPHONE were moved above their
respective values because this looks better.  Some minor typos fixed.

	[BZ #21783]
	* localedata/locales/lg_UG (LC_TELEPHONE): Move all comments
	above the values, correct some of them.
2017-07-21 11:25:32 +02:00
Akhilesh Kumar
5eeb2ea981 Add/Fix country_isbn for France
[BZ #21795]
	* locales/br_FR (LC_ADDRESS): Add country_isbn.
	* locales/ca_FR (LC_ADDRESS): Add country_isbn.
	* locales/fr_FR (LC_ADDRESS): Add country_isbn.
	* locales/ia_FR (LC_ADDRESS): Fix country_isbn.
	* locales/oc_FR (LC_ADDRESS): Fix country_isbn.
2017-07-21 10:15:25 +02:00
Akhilesh Kumar
98d9c9a61b Add country_name and country_post, and country_isbn for pap_AW and pap_CW
[BZ #21807]
	[BZ #21808]
	* locales/pap_AW (LC_ADDRESS): Add country_name and country_post.
	* locales/pap_CW (LC_ADDRESS): Add country_name, country_post,
	and country_isbn.
2017-07-21 09:24:22 +02:00
Mike FABIAN
36ea2b1b68 Add int_select to many locales
* locales/ar_JO (LC_TELEPHONE): Add int_select.
	* locales/ar_LB (LC_TELEPHONE): Add int_select.
	* locales/ar_MA (LC_TELEPHONE): Add int_select.
	* locales/ar_OM (LC_TELEPHONE): Add int_select.
	* locales/ber_DZ (LC_TELEPHONE): Add int_select.
	* locales/ber_MA (LC_TELEPHONE): Add int_select.
	* locales/ca_ES (LC_TELEPHONE): Add int_select.
	* locales/crh_UA (LC_TELEPHONE): Add int_select.
	* locales/de_CH (LC_TELEPHONE): Add int_select.
	* locales/de_LI (LC_TELEPHONE): Add int_select.
	* locales/de_LU (LC_TELEPHONE): Add int_select.
	* locales/dz_BT (LC_TELEPHONE): Add int_select.
	* locales/en_HK (LC_TELEPHONE): Add int_select.
	* locales/en_IE (LC_TELEPHONE): Add int_select.
	* locales/en_NZ (LC_TELEPHONE): Add int_select.
	* locales/en_PH (LC_TELEPHONE): Add int_select.
	* locales/en_SG (LC_TELEPHONE): Add int_select.
	* locales/es_ES (LC_TELEPHONE): Add int_select.
	* locales/es_PA (LC_TELEPHONE): Add int_select.
	* locales/es_US (LC_TELEPHONE): Add int_select.
	* locales/es_UY (LC_TELEPHONE): Add int_select.
	* locales/eu_ES (LC_TELEPHONE): Add int_select.
	* locales/he_IL (LC_TELEPHONE): Add int_select.
	* locales/id_ID (LC_TELEPHONE): Add int_select.
	* locales/it_CH (LC_TELEPHONE): Add int_select.
	* locales/it_CH (LC_TELEPHONE): Add int_select.
	* locales/it_IT (LC_TELEPHONE): Add int_select.
	* locales/kl_GL (LC_TELEPHONE): Add int_select.
	* locales/ko_KR (LC_TELEPHONE): Add int_select.
	* locales/kw_GB (LC_TELEPHONE): Add int_select.
	* locales/ky_KG (LC_TELEPHONE): Add int_select.
	* locales/lij_IT (LC_TELEPHONE): Add int_select.
	* locales/lt_LT (LC_TELEPHONE): Add int_select.
	* locales/lv_LV (LC_TELEPHONE): Add int_select.
	* locales/mi_NZ (LC_TELEPHONE): Add int_select.
	* locales/ms_MY (LC_TELEPHONE): Add int_select.
	* locales/mt_MT (LC_TELEPHONE): Add int_select.
	* locales/ne_NP (LC_TELEPHONE): Add int_select.
	* locales/niu_NU (LC_TELEPHONE): Add int_select.
	* locales/nl_NL (LC_TELEPHONE): Add int_select.
	* locales/pl_PL (LC_TELEPHONE): Add int_select.
	* locales/ro_RO (LC_TELEPHONE): Add int_select.
	* locales/ru_UA (LC_TELEPHONE): Add int_select.
	* locales/rw_RW (LC_TELEPHONE): Add int_select.
	* locales/sk_SK (LC_TELEPHONE): Add int_select.
	* locales/sl_SI (LC_TELEPHONE): Add int_select.
	* locales/so_SO (LC_TELEPHONE): Add int_select.
	* locales/the_NP (LC_TELEPHONE): Add int_select.
	* locales/tk_TM (LC_TELEPHONE): Add int_select.
	* locales/uz_UZ (LC_TELEPHONE): Add int_select.
	* locales/uz_UZ@cyrillic (LC_TELEPHONE): Add int_select.
	* locales/zh_SG (LC_TELEPHONE): Add int_select.
2017-07-20 17:14:49 +02:00
Akhilesh Kumar
ed6a854cf6 Added int_select international_call_prefixes
[BZ # 21801]
	* locales/es_NI (LC_TELEPHONE): Add int_select.
	* locales/es_PE (LC_TELEPHONE): Add int_select.
	* locales/es_PR (LC_TELEPHONE): Add int_select.
	* locales/es_PY (LC_TELEPHONE): Add int_select.
	* locales/es_VE (LC_TELEPHONE): Add int_select.
	* locales/fo_FO (LC_TELEPHONE): Add int_select.
	* locales/fr_CH (LC_TELEPHONE): Add int_select.
	* locales/fr_LU (LC_TELEPHONE): Add int_select.
	* locales/ga_IE (LC_TELEPHONE): Add int_select.
	* locales/gl_ES (LC_TELEPHONE): Add int_select.
	* locales/gv_GB (LC_TELEPHONE): Add int_select.
2017-07-20 14:22:31 +02:00
Akhilesh Kumar
747d9c2224 Fix int_select international_call_prefixes
[BZ #21799]
	* locales/ar_KW (LC_TELEPHONE): Add int_select.
	* locales/ar_LY (LC_TELEPHONE): Add int_select.
	* locales/ar_QA (LC_TELEPHONE): Add int_select.
	* locales/ar_SA (LC_TELEPHONE): Add int_select.
	* locales/ar_SS (LC_TELEPHONE): Add int_select.
	* locales/ar_SY (LC_TELEPHONE): Add int_select.
	* locales/ar_TN (LC_TELEPHONE): Add int_select.
	* locales/ar_YE (LC_TELEPHONE): Add int_select.
	* locales/ca_AD (LC_TELEPHONE): Add int_select.
	* locales/es_MX (LC_TELEPHONE): Add int_select.
2017-07-20 14:22:31 +02:00
Adhemerval Zanella
ee8c6cc5f9 Update sparc ulps
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2017-07-19 15:56:02 -03:00
Adhemerval Zanella
d500130f31 alpha: Fix clone exit syscall argument passing (BZ#21512)
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-19 14:24:43 -03:00
DJ Delorie
f8cef4d07d Fix cast-after-dereference
Original code was dereferencing a char*, then casting the value
to size_t.  Should cast the pointer to size_t* then deference.
2017-07-19 13:17:03 -04:00
Mike FABIAN
4f329ea996 Add country_name to iu_CA locale
* locales/iu_CA (LC_ADDRESS): Add country_name
2017-07-19 17:44:09 +02:00
Akhilesh Kumar
3f31d8bbad Fix country_post "Country Postal Abbreviations"
[BZ #21788]
	* locales/cy_GB (LC_ADDRESS): Add country_post.
	* locales/hy_AM (LC_ADDRESS): Add country_post.
	* locales/iu_CA (LC_ADDRESS): Add country_post.
	* locales/nan_TW@latin (LC_ADDRESS): Add country_post.
	* locales/ps_AF (LC_ADDRESS): Add country_post.
	* locales/sr_RS (LC_ADDRESS): Fix country_post.
	* locales/sr_RS@latin (LC_ADDRESS): Fix country_post.
	* locales/zh_TW (LC_ADDRESS): Fix country_post.
2017-07-19 17:44:09 +02:00
Akhilesh Kumar
43cd85db51 Fix consistency in country_isbn in various locales and add comment to country_num in nr_ZA
[BZ #21784]
	* locales/bo_CN (LC_ADDRESS): Fix inconsistency in country_isbn.
	* locales/fa_IR (LC_ADDRESS): Fix inconsistency in country_isbn.
	* locales/nan_TW@latin (LC_ADDRESS): Fix inconsistency in country_isbn.
	* locales/nr_ZA (LC_ADDRESS): Add country_num.
	* locales/sr_RS (LC_ADDRESS): Fix inconsistency in country_isbn.
	* locales/sr_RS@latin (LC_ADDRESS): Fix inconsistency in country_isbn.
	* locales/ug_CN (LC_ADDRESS): Fix inconsistency in country_isbn.
	* locales/yue_HK (LC_ADDRESS): Fix inconsistency in country_isbn.
	* locales/zh_CN (LC_ADDRESS): Fix inconsistency in country_isbn.
	* locales/zh_TW (LC_ADDRESS): Fix inconsistency in country_isbn.
2017-07-19 17:44:09 +02:00
H.J. Lu
47f2739659 i386: 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/i386/i686/multiarch/ifunc-impl-list.c
	(__libc_ifunc_impl_list): Test memmove_chk and memset_chk only
	in libc.so.
2017-07-19 08:39:18 -07:00
H.J. Lu
2b4fca86d7 Don't add stack_chk_fail_local.o to libc.a [BZ #21740]
commit 524a8ef2ad
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 08:21:46 -07:00
Szabolcs Nagy
82e0660050 [AArch64] Update dl-procinfo for new HWCAP flags in Linux 4.12
Follow up to commit 512d245bc3.

	* 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-19 13:50:23 +01:00
Akhilesh Kumar
0757b139fc Fix or add int_select international_call_prefixes
[BZ #21783 ]
	* locales/ar_AE (LC_TELEPHONE): Add int_select.
	* locales/ar_BH (LC_TELEPHONE): Fix int_select.
	* locales/ar_IQ (LC_TELEPHONE): Add int_select.
	* locales/es_CU (LC_TELEPHONE): Add int_select.
	* locales/ja_JP (LC_TELEPHONE): Add int_select.
	* locales/lg_UG (LC_TELEPHONE): Fix int_select.
	* locales/mn_MN (LC_TELEPHONE): Fix int_select.
	* locales/om_KE (LC_TELEPHONE): Add int_select.
	* locales/sm_WS (LC_TELEPHONE): Fix int_select.
2017-07-19 13:44:08 +02:00
Szabolcs Nagy
00d7a37773 [AArch64] Fix out of bound array access regression
Partially revert ea01a4da21
"aarch64: Add hwcap string routines" because _dl_procinfo cannot
be future proof and avoid oob access in _dl_hwcap_string.
2017-07-18 10:34:20 +01:00
Tulio Magno Quites Machado Filho
91ac3a7d84 powerpc: Fix float128 IFUNC relocations [BZ #21707]
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-17 17:49:26 -03:00
DJ Delorie
ae5c498d93 Extend NSS test suite
* 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-17 15:52:44 -04:00
Adhemerval Zanella
48145e1c7d hppa: Fix clone exit syscall argument passing (BZ#21512)
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-17 14:25:40 -03:00