Module Name:    src
Committed By:   joerg
Date:           Fri May 20 22:22:45 UTC 2011

Modified Files:
        src/libexec/ld.elf_so: Makefile

Log Message:
Disable use of various X86 extensions since _rtld_bind_start doesn't
save the necessary registers.


To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.105 src/libexec/ld.elf_so/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/ld.elf_so/Makefile
diff -u src/libexec/ld.elf_so/Makefile:1.104 src/libexec/ld.elf_so/Makefile:1.105
--- src/libexec/ld.elf_so/Makefile:1.104	Fri May 20 22:21:32 2011
+++ src/libexec/ld.elf_so/Makefile	Fri May 20 22:22:44 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.104 2011/05/20 22:21:32 joerg Exp $
+#	$NetBSD: Makefile,v 1.105 2011/05/20 22:22:44 joerg Exp $
 #
 # NOTE: when changing ld.so, ensure that ldd still compiles.
 #
@@ -93,6 +93,10 @@
 #DBG=		-g
 DBG=		-O3 -fomit-frame-pointer
 
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+DBG+=		-mno-3dnow -mno-mmx -mno-sse -mno-sse2 -mno-sse3
+.endif
+
 .if ${SHLIBDIR} != ${LIBDIR}
 CPPFLAGS+=	-DRTLD_DEFAULT_LIBRARY_PATH=\"${SHLIBDIR}:${LIBDIR}\"
 .endif

Reply via email to