Skip to content

Commit

Permalink
Disable VSX usage in rtld.c to prevent TOC ref before relocs are reso…
Browse files Browse the repository at this point in the history
…lved.
  • Loading branch information
Ryan S. Arnold authored and Ulrich Drepper committed Feb 17, 2011
1 parent e943389 commit 2206397
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2011-02-15 Ryan S. Arnold <rsa@us.ibm.com>

* 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-15 Ulrich Drepper <drepper@gmail.com>

[BZ #12469]
Expand Down
5 changes: 5 additions & 0 deletions sysdeps/powerpc/powerpc64/power7/Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2206397

Please sign in to comment.