fix dlsym of thread-local symbols on archs with DTP_OFFSET!=0
authorRich Felker <dalias@aerifal.cx>
Fri, 12 Oct 2018 16:26:44 +0000 (12:26 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 12 Oct 2018 16:31:36 +0000 (12:31 -0400)
commit37cd1676395e5ebdae3f372bf59d4fef54be9818
tree7fb8bbaff9b8ac424828e490dff24a8fc8349de0
parentb6d701a47504e5ef9c6a19b2f6a703c72cb9e8ac
fix dlsym of thread-local symbols on archs with DTP_OFFSET!=0

commit 6ba5517a460c6c438f64d69464fdfc3269a4c91a modified
__tls_get_addr to offset the address by +DTP_OFFSET (0x8000 on
powerpc, mips, etc.) and adjusted the result of DTPREL relocations by
-DTP_OFFSET to compensate, but missed changing the argument setup for
calls to __tls_get_addr from dlsym.
ldso/dynlink.c