[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 18:40:21 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245677
--- Comment #4 from commit-hook at 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
--
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