about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-11-02 18:43:27 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-11-02 18:43:27 -0700
commitf62c8abcfbf0d2e7f0a6c6c1dde53158e6fc4e59 (patch)
treeab3bc4ef52bcf81e57b10d0f72e614af61d3fa58 /sysdeps
parenta68d0680f89b5f3639b30ec7955671d97e101e87 (diff)
downloadglibc-f62c8abcfbf0d2e7f0a6c6c1dde53158e6fc4e59.tar.gz
glibc-f62c8abcfbf0d2e7f0a6c6c1dde53158e6fc4e59.tar.xz
glibc-f62c8abcfbf0d2e7f0a6c6c1dde53158e6fc4e59.zip
Compile x86 rtld with -mno-sse -mno-mmx
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/x86/Makefile4
-rw-r--r--sysdeps/x86_64/multiarch/strcasestr-nonascii.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/x86/Makefile b/sysdeps/x86/Makefile
new file mode 100644
index 0000000000..f25d1e2415
--- /dev/null
+++ b/sysdeps/x86/Makefile
@@ -0,0 +1,4 @@
+ifeq ($(subdir),elf)
+CFLAGS-.os += $(if $(filter $(@F),$(patsubst %,%.os,$(all-rtld-routines))),\
+		   -mno-sse -mno-mmx)
+endif
diff --git a/sysdeps/x86_64/multiarch/strcasestr-nonascii.c b/sysdeps/x86_64/multiarch/strcasestr-nonascii.c
index a1f9968848..db84a43ac0 100644
--- a/sysdeps/x86_64/multiarch/strcasestr-nonascii.c
+++ b/sysdeps/x86_64/multiarch/strcasestr-nonascii.c
@@ -16,7 +16,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-# include <ctype.h>
+#include <ctype.h>
+#include <xmmintrin.h>
 
 
 /* Similar to __m128i_strloadu.  Convert to lower case for none-POSIX/C