This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Check if RTLD_SAVESPACE_SSE is 32byte aligned
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 11 May 2012 11:33:59 -0700
- Subject: PATCH: Check if RTLD_SAVESPACE_SSE is 32byte aligned
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
Since sysdeps/x86_64/dl-trampoline.S has
vmovdqa %ymm0, %fs:RTLD_SAVESPACE_SSE+0*YMM_SIZE
RTLD_SAVESPACE_SSE must be 32-byte aliged. This patch adds a compile
time check. Tested on Linux/x32 and Linux/x86-64. OK to install?
Thanks.
H.J.
---
* sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
is 32-byte aligned.
diff --git a/sysdeps/x86_64/dl-trampoline.S b/sysdeps/x86_64/dl-trampoline.S
index 7691662..0272b23 100644
--- a/sysdeps/x86_64/dl-trampoline.S
+++ b/sysdeps/x86_64/dl-trampoline.S
@@ -20,6 +20,10 @@
#include <sysdep.h>
#include <link-defines.h>
+#if (RTLD_SAVESPACE_SSE % 32) != 0
+# error "RTLD_SAVESPACE_SSE must be 32byte aligned"
+#endif
+
.text
.globl _dl_runtime_resolve
.type _dl_runtime_resolve, @function
--
1.7.6.5