Hi Sergei, On Tue, May 12, 2026 at 09:11:51PM +0000, Sergei Zimmerman wrote: > This dynamic relocation can appear in shared libraries. > > Fixes run-elflint-self.sh and run-reverse-sections-self.sh self-tests > when built with -mtls-dialect=gnu2 on i386.
Yes, looks correct. Quickly tested on a debian i386 setup. Looks like the only documentation is https://www.fsfla.org/~lxoliva/writeups/TLS/RFC-TLSDESC-x86.txt Or is there something more current? > Signed-off-by: Sergei Zimmerman <[email protected]> > --- > Terribly sorry for the quoted-printable encoding, git am --quoted-cr strip > should work fine to strip the encoding. Seems like b4 had no trouble with it. > backends/i386_reloc.def | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/backends/i386_reloc.def b/backends/i386_reloc.def > index a6a03f32..7a438158 100644 > --- a/backends/i386_reloc.def > +++ b/backends/i386_reloc.def > @@ -66,6 +66,6 @@ RELOC_TYPE (TLS_DTPOFF32, EXEC|DYN) > RELOC_TYPE (TLS_TPOFF32, EXEC|DYN) > RELOC_TYPE (TLS_GOTDESC, REL) > RELOC_TYPE (TLS_DESC_CALL, REL) > -RELOC_TYPE (TLS_DESC, EXEC) > +RELOC_TYPE (TLS_DESC, EXEC|DYN) > RELOC_TYPE (IRELATIVE, EXEC|DYN) > RELOC_TYPE (GOT32X, REL) Pushed. Thanks, Mark
