about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-11 11:50:11 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-05-11 11:50:11 -0700
commit1cf463cd4e499488cbea70c50939d22b6ffc045f (patch)
tree5709cad586973049d85a3393387df05889e32978
parenteae2d36a96a266fa49459fdb8f98489afba9f0bb (diff)
downloadglibc-1cf463cd4e499488cbea70c50939d22b6ffc045f.tar.gz
glibc-1cf463cd4e499488cbea70c50939d22b6ffc045f.tar.xz
glibc-1cf463cd4e499488cbea70c50939d22b6ffc045f.zip
Check if RTLD_SAVESPACE_SSE is aligned to 32 bytes
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/x86_64/dl-trampoline.S4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8c88f81797..dcc28d5da7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
+	is 32-byte aligned.
+
 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
 
 	[BZ #11837]
diff --git a/sysdeps/x86_64/dl-trampoline.S b/sysdeps/x86_64/dl-trampoline.S
index 7691662867..6185ba4876 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 aligned to 32 bytes
+#endif
+
 	.text
 	.globl _dl_runtime_resolve
 	.type _dl_runtime_resolve, @function