Date: Wed, 22 Apr 2020 18:40:20 +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-0zqPv3JbEt@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 #4 from commit-hook@freebsd.org --- A commit references this bug: Author: kib Date: Wed Apr 22 18:39:46 UTC 2020 New revision: 360201 URL: https://svnweb.freebsd.org/changeset/base/360201 Log: rtld: ignore static TLS segments when tracing. For PIE binaries, ldd(1) performs dlopen(RTLD_TRACE) on the binary. It is legal for binary to use initial exec TLS mode, but when such binary (actually dso) is dlopened, we might not have enough free space in the finalized static TLS segment. Make ldd operational by skipping TLS space allocation, we are not going to execute any code from the dso anyway. Reported by: tobik PR: 245677 Sponsored by: The FreeBSD Foundation MFC after: 1 week Changes: head/libexec/rtld-elf/rtld.c head/libexec/rtld-elf/rtld.h --=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-0zqPv3JbEt>