From 4265a8e3556a90e6e2ee583388d8aaa0d93cfa29 Mon Sep 17 00:00:00 2001 From: "Ryan S. Arnold" Date: Tue, 15 Feb 2011 09:50:09 -0600 Subject: Prevent VSX type TOC ref in _dl_start before relocs are resolved. Disable VSX instruction usage in rtld.c with -mno-vsx so that, under -O3 optimization, a TOC reference isn't used for a zero constant in a VSX register prior to resolution of relocations. --- sysdeps/powerpc/powerpc64/power7/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sysdeps/powerpc/powerpc64/power7/Makefile b/sysdeps/powerpc/powerpc64/power7/Makefile index 54b0fd9aee..3e8fc29dba 100644 --- a/sysdeps/powerpc/powerpc64/power7/Makefile +++ b/sysdeps/powerpc/powerpc64/power7/Makefile @@ -1,6 +1,5 @@ ifeq ($(subdir),elf) -# Prevent the use of VSX instructions in _dl_start, which under -O3 optimization +# Prevent the use of VSX registers in _dl_start, which under -O3 optimization # may require a TOC reference before relocations are resolved. CFLAGS-rtld.c = -mno-vsx endif - -- cgit 1.4.1