fix powerpc dynamic linker thread-pointer-relative relocations
authorRich Felker <dalias@aerifal.cx>
Tue, 17 Jun 2014 18:32:43 +0000 (14:32 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 28 Jul 2014 04:27:58 +0000 (00:27 -0400)
commitf70401eae5c5ca3db2fbf8c7bf758eca40ab5bc3
tree88f5247f2592cca83794fd0b0cf6f9a943b62a9c
parentaf9e1752cd77179353249ec7aeac8bafd979efce
fix powerpc dynamic linker thread-pointer-relative relocations

processing of R_PPC_TPREL32 was ignoring the addend provided by the
RELA-style relocation and instead using the inline value as the
addend. this presumably broke dynamic-linked access to initial TLS in
cases where the addend was nonzero.

(cherry picked from commit 94cf991bf4b18bb87a15a96e7b5e7d92fab787ba)
arch/powerpc/reloc.h