Date: Wed, 22 Apr 2020 17:37:05 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 245677] ldd fails to work on some binaries ("No space available for static Thread Local Storage") Message-ID: <bug-245677-29464-WvPV0jKUAs@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-245677-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-245677-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245677 --- Comment #3 from Konstantin Belousov <kib@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 rese= rve 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. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245677-29464-WvPV0jKUAs>