Commit Graph

34492 Commits

Author SHA1 Message Date
Stan Shebs
2431995fd0 As with gettimeofday, avoid vdso for clang-compiled time() 2019-04-30 18:24:46 -07:00
Stan Shebs
d3f21e2615 Bypass gettimeofday ifunc if using clang 2019-04-30 18:23:43 -07:00
Stan Shebs
583e97d196 Make pointer in tst-realloc volatile also 2019-04-30 18:18:24 -07:00
Stan Shebs
2b89ce53dc Defeat a malloc optimization by declaring things volatile. 2019-04-30 18:17:39 -07:00
Stan Shebs
c3f0d624e9 Make zero volatile to defeat constant-folding of 0.0/0.0 2019-04-30 17:34:38 -07:00
Stan Shebs
96ba247eed Comment out debugging hack that pollutes namespace 2019-04-30 15:45:23 -07:00
Stan Shebs
1ba2430890 Avoid the nonstandard .tls_common 2019-04-30 15:44:35 -07:00
Stan Shebs
98fa878ff0 Use clang integrated assembler except when asm is output and not required to be valid 2019-04-30 14:34:20 -07:00
Stan Shebs
47421c20fa For clang, add hidden proto of __libc_allocate_once_slow ahead of use 2019-04-30 14:18:35 -07:00
Stan Shebs
7f08540d90 Do not pass unhandled flag to clang 2019-04-30 13:53:45 -07:00
Stan Shebs
98bd74d428 Stub out execstack problem 2019-04-30 13:39:38 -07:00
Stan Shebs
84b5ab235e Stub out execstack, multidir, and ifunc problems 2019-04-30 13:38:28 -07:00
Stan Shebs
0d8743de85 Skip execstack test, depends on nested function 2019-04-30 13:29:13 -07:00
Stan Shebs
8603348fa3 De-nest test-ffs.c 2019-04-29 21:26:52 -07:00
Stan Shebs
240ea3c09c Work around a clang bug 2019-04-29 21:24:34 -07:00
Stan Shebs
411c5470ad clang requires -mno-see for 387 math 2019-04-29 20:33:36 -07:00
Stan Shebs
e5da52d681 Suppress tgmath3 tests if clang 2019-04-29 20:05:48 -07:00
Stan Shebs
60c5087acb Put CMPLX* macros under ISO C11 2019-04-29 17:26:18 -07:00
Stan Shebs
7220c4d393 Add clang versions of CMPLX* macros 2019-04-29 14:07:00 -07:00
Stan Shebs
e57ac229dc Reduce an error to warning if clang 2019-04-29 12:00:35 -07:00
Stan Shebs
367c8c0e97 Add a hidden_proto for __close_nocancel before its use 2019-04-26 13:43:38 -07:00
Stan Shebs
e9ba4bf620 Add another workaround for clang problem with sizes in asm 2019-04-26 13:37:12 -07:00
Stan Shebs
181e58d747 Add hidden protos ahead of uses 2019-04-26 13:30:54 -07:00
Stan Shebs
40f3f5c1a5 De-nest makedb.c 2019-04-26 13:29:49 -07:00
Stan Shebs
7e3b1df6d4 Work around a weird clang link failure 2019-04-26 13:28:35 -07:00
Stan Shebs
964779a113 Remove debugging hack 2019-04-26 13:27:18 -07:00
Stan Shebs
9e10cf821f Work around clang assembler bug with expressions in .if 2019-04-26 13:26:46 -07:00
Stan Shebs
74b7dd6b5a Work around lack of .tfloat in clang assembler 2019-04-26 12:14:07 -07:00
Stan Shebs
4b957d975d Disallow extern inline if clang 2019-04-26 12:08:19 -07:00
Stan Shebs
73efc556ac Work around clang asm problem by changing types of two variables 2019-04-26 08:11:38 -07:00
Stan Shebs
ace275b80b Update de-nested functions to match originals 2019-04-26 08:09:45 -07:00
Stan Shebs
52a7cb28f9 Add a --with-lld option to choose LLVMs lld linker 2019-04-24 11:04:33 -07:00
Stan Shebs
1cfcdae979 Work around clang assembler error with bnd by itself on a line 2019-04-24 09:47:33 -07:00
Stan Shebs
7c44a0bf9c Change de-nesting fix to use added argument instead of globals 2019-04-24 09:10:20 -07:00
Stan Shebs
868fc27ff4 Un-nest nested functions in dynamic linker 2019-04-24 09:06:59 -07:00
Stan Shebs
fbf200117d Work around clang assembler problem with ifunc relocs 2019-04-24 08:14:19 -07:00
Stan Shebs
53eebacec0 De-nest regcomp.c 2019-04-24 08:09:37 -07:00
Stan Shebs
f38fa7c980 Work around clang assembler error with movzx 2019-04-24 08:02:45 -07:00
Stan Shebs
64b3e177bc Work around a clang problem with asm constraints 2019-04-24 08:01:50 -07:00
Stan Shebs
1ba307084e Add workarounds for incomplete float128 support in clang 2019-04-24 07:53:02 -07:00
Stan Shebs
268ddcff50 Add clang version of __hidden_proto 2019-04-23 14:30:33 -07:00
Stan Shebs
54031961bf Skip undefined va_arg_pack 2019-04-23 14:28:39 -07:00
Stan Shebs
4bbfeb8e5b Add --with-clang and --disable-float128 options to toplevel configury 2019-04-23 14:25:52 -07:00
Carlos O'Donell
dcd2b97dd1 malloc: Set and reset all hooks for tracing (Bug 16573)
If an error occurs during the tracing operation, particularly during a
call to lock_and_info() which calls _dl_addr, we may end up calling back
into the malloc-subsystem and relock the loader lock and deadlock. For
all intents and purposes the call to _dl_addr can call any of the malloc
family API functions and so we should disable all tracing before calling
such loader functions.  This is similar to the strategy that the new
malloc tracer takes when calling the real malloc, namely that all
tracing ceases at the boundary to the real function and any faults at
that point are the purvue of the library (though the new tracer does
this on a per-thread basis in an MT-safe fashion). Since the new tracer
and the hook deprecation are not yet complete we must fix these issues
where we can.

Tested on x86_64 with no regressions.

Co-authored-by: Kwok Cheung Yeung <kcy@codesourcery.com>
Reviewed-by: DJ Delorie <dj@redhat.com>
(cherry picked from commit e621246ec6)
2019-04-15 20:49:32 +02:00
TAMUKI Shoichi
0941350c20 ja_JP locale: Add entry for the new Japanese era [BZ #22964]
The Japanese era name will be changed on May 1, 2019.  The Japanese
government made a preliminary announcement on April 1, 2019.

The glibc ja_JP locale must be updated to include the new era name for
strftime's alternative year format support.

This is a minimal cherry pick of just the required locale changes.

(cherry picked from commit 466afec308)
2019-04-03 19:42:20 +02:00
TAMUKI Shoichi
e28ad442e7 ja_JP: Change the offset for Taisho gan-nen from 2 to 1 [BZ #24162]
The offset in era-string format for Taisho gan-nen (1912) is currently
defined as 2, but it should be 1.  So fix it.  "Gan-nen" means the 1st
(origin) year, Taisho started on July 30, 1912.

Reported-by: Morimitsu, Junji <junji.morimitsu@hpe.com>
Reviewed-by: Rafal Luzynski <digitalfreak@lingonborough.com>

ChangeLog:

	[BZ #24162]
	* localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
	gan-nen from 2 to 1.  Problem reported by Morimitsu, Junji.

(cherry picked from commit 31effacee2)
2019-03-22 10:59:06 +09:00
Stefan Liebler
6eb48fe80c S390: Mark vx and vxe as important hwcap.
This patch adds vx and vxe as important hwcaps
which allows one to provide shared libraries
tuned for platforms with non-vx/-vxe, vx or vxe.

ChangeLog:

	* sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
	Add HWCAP_S390_VX and HWCAP_S390_VXE.

(cherry picked from commit 61f5e9470f)

Conflicts:
	ChangeLog
2019-03-21 09:27:37 +01:00
Aurelien Jarno
10dd17da71 Record CVE-2019-9169 in NEWS and ChangeLog [BZ #24114]
(cherry picked from commit b626c5aa5d)
2019-03-16 23:27:47 +01:00
Paul Eggert
4d0b1b0f61 regex: fix read overrun [BZ #24114]
Problem found by AddressSanitizer, reported by Hongxu Chen in:
https://debbugs.gnu.org/34140
* posix/regexec.c (proceed_next_node):
Do not read past end of input buffer.

(cherry picked from commit 583dd860d5)
2019-03-16 23:26:14 +01:00
Stefan Liebler
bc6f839fb4 Fix output of LD_SHOW_AUXV=1.
Starting with commit 1616d034b6
the output was corrupted on some platforms as _dl_procinfo
was called for every auxv entry and on some architectures like s390
all entries were represented as "AT_HWCAP".

This patch is removing the condition and let _dl_procinfo decide if
an entry is printed in a platform specific or generic way.
This patch also adjusts all _dl_procinfo implementations which assumed
that they are only called for AT_HWCAP or AT_HWCAP2. They are now just
returning a non-zero-value for entries which are not handled platform
specifc.

ChangeLog:

	* elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
	call _dl_procinfo.
	* sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
	Ignore types other than AT_HWCAP.
	* sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
	* sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
	Likewise.
	* sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
	in the case of falling back to generic output mechanism.
	* sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
	Likewise.

(cherry picked from commit 7c6513082b)

Conflicts:
	ChangeLog
2019-03-13 10:51:23 +01:00