remove remaining traces of __tls_get_new
commit33bc7f05fc856d8819083afe4668907a9d262e4c
authorSzabolcs Nagy <nsz@port70.net>
Sun, 29 Sep 2019 12:25:39 +0000 (29 12:25 +0000)
committerRich Felker <dalias@aerifal.cx>
Sun, 29 Sep 2019 21:59:30 +0000 (29 17:59 -0400)
tree78d6d2efbfc9f5bab6fd748befd9961daebc89cc
parentca577951138127dcf4190a2eb3c7148b2ad6d779
remove remaining traces of __tls_get_new

Some declarations of __tls_get_new were left in the code, even
though the definition got removed in

  commit 9d44b6460ab603487dab4d916342d9ba4467e6b9
  install dynamic tls synchronously at dlopen, streamline access

this can make the build fail with

  ld: lib/libc.so: hidden symbol `__tls_get_new' isn't defined

when libc.so is linked without --gc-sections, because a .hidden
declaration in asm code creates a reference even if the symbol
is not actually used.
src/internal/pthread_impl.h
src/ldso/aarch64/tlsdesc.s
src/ldso/arm/tlsdesc.S
src/ldso/i386/tlsdesc.s
src/ldso/x86_64/tlsdesc.s