[Bug 245677] ldd fails to work on some binaries ("No space available for static Thread Local Storage")
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Apr 22 17:37:05 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245677
--- Comment #3 from Konstantin Belousov <kib at FreeBSD.org> ---
(In reply to Tobias Kortkamp from comment #2)
I definitely do not want to run pkg install of some random package even on test
machine.
I unpacked the tarball and looked. The reason why the things fail are
somewhat silly. First, the binary seems to be built as PIE, which results
in the binary actually be dso. Then, the binary has TLS segment, compiled
for initial exec mode. This mode is unsupported for dlopened libs, we reserve
128 bytes of slack for them, but fd requires ~6K of TLS data.
ldd for libraries does dlopen(), and we cannot dlopen because the slack is only
128 bytes, while binary asks for 6k. So we abort.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list