[PATCH] i386: Add GLIBC_ABI_GNU_TLS dependency only if used

H.J. Lu hjl.tools@gmail.com
Wed Dec 10 23:07:53 GMT 2025


On Tue, Dec 9, 2025 at 6:43 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> On Mon, Dec 8, 2025 at 10:12 AM H.J. Lu <hjl.tools@gmail.com> wrote:
> >
> > Add GLIBC_ABI_GNU_TLS version dependency only if ___tls_get_addr is
> > referenced by regular object.
> >
> > bfd/
> >
> > PR ld/33287
> > PR ld/33702
> > * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Set
> > has_tls_get_addr_call only if referenced by regular object.
> >
> > ld/
> >
> > PR ld/33287
> > PR ld/33702
> > * testsuite/ld-i386/i386.exp: Run PR ld/33702 test.
> > * testsuite/ld-i386/no-tls.c: New file.
> >
> > --
> > H.J.
>
> I am checking it in.
>
> --
> H.J.

I am backporting it to 2.45 branch.

-- 
H.J.


More information about the Binutils mailing list