nptl: Use linker-defined symbol to find start of .tdata section.
commit7f07872b8aea16611890865700fbfefd586bc1fb
authorChristophe Lyon <christophe.lyon@st.com>
Wed, 4 Jul 2018 15:55:34 +0000 (4 17:55 +0200)
committerWaldemar Brodkorb <wbrodkorb@conet.de>
Fri, 10 Aug 2018 14:02:45 +0000 (10 16:02 +0200)
treebd734164cf522b2b6950d90338d48b7d21789845
parent4d6b4178c8e49dd6d3067a399e2a49d5379b7750
nptl: Use linker-defined symbol to find start of .tdata section.

phdr->p_vaddr of TLS segment is not a valid value for FDPIC so we can
either translate phdr->p_vaddr using loadmap (not easy here) or use a
new linker script defined symbol, whih this patch does.

* libpthread/nptl/sysdeps/generic/libc-tls.c (__tdata_start): Declare.
(__libc_setup_tls): Support __FDPIC__.

Signed-off-by: Mickaël Guêné <mickael.guene@st.com>
Signed-off-by: Christophe Lyon <christophe.lyon@st.com>
libpthread/nptl/sysdeps/generic/libc-tls.c