PATCH: Check if RTLD_SAVESPACE_SSE is 32byte aligned
H.J. Lu
hongjiu.lu@intel.com
Fri May 11 18:34:00 GMT 2012
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
More information about the Libc-alpha
mailing list