[Bug c++/64697] C++11 thread_local: relocation truncated to fit: R_X86_64_PC32 against undefined symbol `TLS init function for N::ptd'

vhaisman at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jan 26 11:00:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64697

--- Comment #19 from Václav Haisman <vhaisman at gmail dot com> ---
There appears to be some sort of interaction with the `inline` attribute of the
`get_ptd()` function. If the `get_ptd()` function is just declared `extern` in
`def.hxx` and defined in `def.cxx`, the link error goes away.


More information about the Gcc-bugs mailing list