fix dynamic linker not to depend on DYNAMIC ptr in 0th entry of GOT
authorRich Felker <dalias@aerifal.cx>
Fri, 20 Jan 2012 16:14:27 +0000 (11:14 -0500)
committerRich Felker <dalias@aerifal.cx>
Fri, 20 Jan 2012 16:14:27 +0000 (11:14 -0500)
commit0b6dc0974426238cfe8fbb01ef64e7911f2da678
treed125a6b4af8936db9d2654da3cdee7fcdd626350
parent07065210cae8ae40fceeee4febf338e1f1aecd0c
fix dynamic linker not to depend on DYNAMIC ptr in 0th entry of GOT

this fixes an issue using gold instead of gnu ld for linking. it also
should eliminate the need of the startup code to even load/pass the
got address to the dynamic linker.

based on patch submitted by sh4rm4 with minor cosmetic changes.

further cleanup will follow.
src/ldso/dynlink.c