OSDN Git Service

fix ld-behavior-dependent crash in ppc64 ldso startup
authorRich Felker <dalias@aerifal.cx>
Wed, 8 Mar 2017 18:35:33 +0000 (13:35 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 8 Mar 2017 18:35:33 +0000 (13:35 -0500)
commitfc85fb38605a8bf341c367b8ab0d36edab2bdbfc
tree310e34035a2503bf790606949ea1f9279eed35e5
parent827c4e6fbe46142049ef3d8bcb8f35951712797d
fix ld-behavior-dependent crash in ppc64 ldso startup

the 32-bit pc-relative address for stage 2 of dynamic linker entry was
wrongly loaded with a zero-extending load instead of sign-extending
load, resulting in an invalid jump if the offset happened to be
negative, which depends on the linker's ordering of text sections.
arch/powerpc64/reloc.h