glibc/sysdeps
H.J. Lu 207a72e298 x86-64: Properly align La_x86_64_retval to VEC_SIZE [BZ #22715]
_dl_runtime_profile calls _dl_call_pltexit, passing a pointer to
La_x86_64_retval which is allocated on stack.  The lrv_vector0
field in La_x86_64_retval must be aligned to size of vector register.
When allocating stack space for La_x86_64_retval, we need to make sure
that the address of La_x86_64_retval + RV_VECTOR0_OFFSET is aligned to
VEC_SIZE.  This patch checks the alignment of the lrv_vector0 field
and pads the stack space if needed.

Tested with x32 and x86-64 on SSE4, AVX and AVX512 machines.  It fixed

FAIL: elf/tst-audit10
FAIL: elf/tst-audit4
FAIL: elf/tst-audit5
FAIL: elf/tst-audit6
FAIL: elf/tst-audit7

on x32 AVX512 machine.

	[BZ #22715]
	* sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
	align La_x86_64_retval to VEC_SIZE.
2018-01-17 04:32:04 -08:00
..
aarch64 aarch64: fix static pie enabled libc when main is in a shared library 2018-01-12 18:10:03 +00:00
alpha alpha: Remove s_trunc{f} implementation (BZ#22666) 2018-01-04 17:49:17 -02:00
arm Update ARM libm-test-ulps. 2018-01-02 18:37:06 +00:00
generic Make default libc_feholdsetround_noex_ctx use __feholdexcept (bug 22702). 2018-01-11 18:18:46 +00:00
gnu csu: Update __libgcc_s_init comment 2018-01-11 13:13:28 +01:00
hppa Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
i386 i386: Regenerate libm-test-ulps for for gcc 7 on i686 2018-01-06 22:11:40 +01:00
ia64 Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
ieee754 Fix ldbl-128ibm log1pl (-qNaN) spurious "invalid" exception (bug 22693). 2018-01-10 17:59:01 +00:00
init_array Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
m68k Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
mach hurd: Implement faccessat without AT_EACCESS flag 2018-01-10 02:03:28 +01:00
microblaze Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
mips Update MIPS libm-test-ulps. 2018-01-02 21:55:15 +00:00
nios2 Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nptl nptl: Open libgcc.so with RTLD_NOW during pthread_cancel [BZ #22636] 2018-01-10 13:18:04 +01:00
posix hurd: Fix pwritev* 2018-01-07 13:31:36 +01:00
powerpc powerpc: Fix llround spurious inexact on 32-bit POWER4 [BZ #22697] 2018-01-12 20:39:42 -02:00
pthread Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s390 Fix s390 linknamespace fallout of bug 22702 patch. 2018-01-12 00:12:57 +00:00
sh Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
sparc Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tile Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
unix aarch64: Update bits/hwcap.h for Linux 4.15. 2018-01-16 18:51:13 +00:00
wordsize-32 Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
wordsize-64 Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
x86 Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
x86_64 x86-64: Properly align La_x86_64_retval to VEC_SIZE [BZ #22715] 2018-01-17 04:32:04 -08:00