From 21afa712db5ecfc4d847fc36d0eedf173212a15a Mon Sep 17 00:00:00 2001 From: "Ryan S. Arnold" Date: Thu, 17 Feb 2011 00:59:15 -0500 Subject: Disable VSX usage in rtld.c to prevent TOC ref before relocs are resolved. (cherry picked from commit 2206397e1c46f69fb20eeb3de1920d3a7014c325) --- ChangeLog | 7 +++++++ sysdeps/powerpc/powerpc64/power7/Makefile | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 sysdeps/powerpc/powerpc64/power7/Makefile diff --git a/ChangeLog b/ChangeLog index 6a57302c95..151753ef26 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-02-15 Ryan S. Arnold + + * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds + -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and + insns in _dl_start to prevent a TOC reference before relocs are + resolved. + 2011-02-02 Ulrich Drepper * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the diff --git a/sysdeps/powerpc/powerpc64/power7/Makefile b/sysdeps/powerpc/powerpc64/power7/Makefile new file mode 100644 index 0000000000..b0f45205b9 --- /dev/null +++ b/sysdeps/powerpc/powerpc64/power7/Makefile @@ -0,0 +1,5 @@ +ifeq ($(subdir),elf) +# Prevent the use of VSX registers and insns 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