Commit Graph

31851 Commits

Author SHA1 Message Date
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
Akhilesh Kumar
204b3d4d20 Fix country_name in li_NL
[BZ #21770]
	* locales/li_NL: Fix country_name.
2017-07-17 16:41:59 +02:00
Mike FABIAN
6eb5f3b7c7 Use U+02BB MODIFIER LETTER TURNED COMMA instead of U+0027 APOSTROPHE in 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
2017-07-17 16:29:55 +02:00
Mike FABIAN
7317a97020 Fix yesexpr in new agr_PE locale
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.
2017-07-17 16:27:28 +02:00
Mike FABIAN
3261ddfc14 Write "Latin" in title case in "title" in hif_FJ locale
* locales/hif_FJ: Write "Latin" in title case in "title"
2017-07-17 16:25:43 +02:00
Szabolcs Nagy
512d245bc3 Add HWCAP_ macros from Linux 4.12 to AArch64 bits/hwcap.h.
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-17 09:24:08 +01:00
John David Anglin
1903b38c65 Return to caller if dl_fixup fails to resolve callee on hppa. 2017-07-16 12:59:00 -04:00
John David Anglin
ce1917d0bf Add CFI annotation. 2017-07-16 12:46:50 -04:00
John David Anglin
cc407f4e81 Fix stack offset for r19 load in __getcontext. 2017-07-16 12:24:30 -04:00
John David Anglin
07f94b7a96 Fix __setcontext return value on hppa. 2017-07-16 12:13:14 -04:00
John David Anglin
d71400dca6 Fix syscall cancellation on hppa. 2017-07-16 11:58:01 -04:00
John David Anglin
a363f70336 Remove _exit entry from sysdeps/unix/sysv/linux/hppa/localplt.data. 2017-07-16 11:28:02 -04:00
John David Anglin
4d42d18029 Remove extra braces from sysdeps/hppa/__longjmp.c. 2017-07-16 11:11:31 -04:00
John David Anglin
df3d455b23 Fix [BZ 20098]. 2017-07-16 10:51:13 -04:00
Siddhesh Poyarekar
66cd050f26 Regenerate libc.pot 2017-07-16 15:30:27 +05:30
John David Anglin
32d9b0e7a6 Fix [BZ locale/19838]. 2017-07-15 12:54:14 -04:00
John David Anglin
075385f98a Fix guard alignment in allocate_stack when stack grows up. 2017-07-15 12:40:13 -04:00
John David Anglin
2759a2c1d8 Fix failing sNaN tests on hppa. 2017-07-15 12:18:03 -04:00
DJ Delorie
4fa8ae49aa Fix BZ #21654 - grp-merge.c alignment
* grp/grp_merge.c (__copy_grp): Align char** to minimum pointer
alignment not char alignment.
(__merge_grp): Likewise.
2017-07-14 21:46:42 -04:00
Szabolcs Nagy
de895ddcd7 Disable single thread optimization for open_memstream
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-14 16:09:56 +01:00
Mike FABIAN
8bd8c052e7 Fix country name in li_BE and encoding problem in abday in li_BE and li_NL
* locales/li_BE: Fix country name and encoding problem in abday.
	* locales/li_NL: Fix encoding problem in abday.
2017-07-14 09:24:50 +02:00
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