Bug#1122038: libc6-dev: symbols not covering GLIBC_ABI_GNU_TLS on i386

Florian Weimer <[email protected]>
Newsgroups gmane.linux.debian.devel.glibc
Message-ID <lhucy4q9z7n.fsf__23540.7851681643$1765116087$gmane$org@oldenburg.str.redhat.com>
* Aurelien Jarno:

> On 2025-12-06 22:05, Aurelien Jarno wrote:
>> On 2025-12-06 19:58, Adrian Bunk wrote:
>> > Doesn't this say that it is a bug when every single program picks up a 
>> > dependency on GLIBC_ABI_GNU_TLS?
>> 
>> Or rather, this is a limitation of the linker system which can't easily 
>> add a symbol depending if TLS is used or not in the binary.
>
> Well looking more into details, it could be a binutils bug. It is 
> supposed to add this "flag" only if input relocatable object files
> call ___tls_get_addr.

Yes, it's not supposed to do that.  I can reproduce with
binutils-2.45.1-1.fc43.x86_64 (with gcc -m32).

binutils: GLIBC_ABI_GNU_TLS produced for i386 binaries that do not need it
<https://bugzilla.redhat.com/show_bug.cgi?id=2419758>

Thanks,
Florian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.