From: Ryan S. Arnold Date: Tue, 15 Feb 2011 15:50:09 +0000 (-0600) Subject: Prevent VSX type TOC ref in _dl_start before relocs are resolved. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4265a8e3556a90e6e2ee583388d8aaa0d93cfa29;p=thirdparty%2Fglibc.git 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. --- diff --git a/sysdeps/powerpc/powerpc64/power7/Makefile b/sysdeps/powerpc/powerpc64/power7/Makefile index 54b0fd9aeea..3e8fc29dba2 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 -