Bug 2419758 - binutils: GLIBC_ABI_GNU_TLS produced for i386 binaries that do not need it
Summary: binutils: GLIBC_ABI_GNU_TLS produced for i386 binaries that do not need it
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: binutils
Version: 43
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nick Clifton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-07 13:51 UTC by Florian Weimer
Modified: 2025-12-08 07:37 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Sourceware 33702 0 P2 NEW GLIBC_ABI_GNU_TLS produced for i386 binaries that do not need it 2025-12-08 07:36:59 UTC

Description Florian Weimer 2025-12-07 13:51:00 UTC
A GLIBC_ABI_GNU_TLS symbol version requirement is supposed to be created only if the binary uses global-dynamic TLS. It is created for 32-bit executables that use no TLS at all. (In executables, TLS sequences should be relaxed to local-exec, that's another reason why there shouldn't be a GLIBC_ABI_GNU_TLS symbol requirement.)

Reproducible: Always

Steps to Reproduce:
echo 'int main() {}' > t.c
gcc -m32 t.c
readelf -aW a.out | grep GLIBC_ABI_GNU_TLS


Actual Results:
  0x0010:   Name: GLIBC_ABI_GNU_TLS  Flags: none  Version: 3


Expected Results:
No output because there is no TLS usage in the binary and GLIBC_ABI_GNU_TLS should not be generated.

Comment 1 H.J. Lu 2025-12-08 01:23:01 UTC
I opened:

https://sourceware.org/bugzilla/show_bug.cgi?id=33702


Note You need to log in before you can comment on or make changes to this bug.