]> git.ipfire.org Git - thirdparty/glibc.git/commit
powerpc: Fix ifuncmain6pie failure with GCC 4.9
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 23 Jan 2015 16:16:49 +0000 (11:16 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Sat, 24 Jan 2015 13:38:39 +0000 (08:38 -0500)
commit0e87343e204b44468ffad0ec5dc8c8d6068f1227
tree9d8fec4386efad530b94e129c8549ff4342cc959
parent972af9e8ddd870cabf8aad39b28a6e352c9cc79c
powerpc: Fix ifuncmain6pie failure with GCC 4.9

This patch fix the elf/ifuncmain6pie failure when building with GCC
4.9+.  For some reason, the compiler removes the branch taken code at
resolve_ifunc (sysdeps/powerpc/powerpc64/dl-machine.h) as dead-code
and thus the testcase fails because the ifunc resolves branches to an
invalid memory location.  It fixes by explicit adding a dependency of
value based on odp variable to avoid compiler optimization.

It fixes BZ#17868.
ChangeLog
NEWS
sysdeps/powerpc/powerpc64/dl-machine.h