From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 76B883857809; Tue, 16 Nov 2021 12:24:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 76B883857809 From: "jason at zx2c4 dot com" To: glibc-bugs@sourceware.org Subject: [Bug build/28595] glibc-2.34 build fails with linker error (TLS transition from R_386_TLS_GOTIE to R_386_TLS_LE_32 against `__libc_tsd_CTYPE_B' at 0xf4 in section `.text' failed) Date: Tue, 16 Nov 2021 12:24:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: build X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at zx2c4 dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2021 12:24:56 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28595 --- Comment #17 from Jason A. Donenfeld --- I might be way off here, but... case R_386_TLS_GOTIE: case R_386_TLS_IE_32: /* Check transition from {IE_32,GOTIE} access model: subl foo@{tpoff,gontoff}(%reg1), %reg2 movl foo@{tpoff,gontoff}(%reg1), %reg2 addl foo@{tpoff,gontoff}(%reg1), %reg2 */ if (offset < 2 || (offset + 4) > sec->size) return false; val =3D bfd_get_8 (abfd, contents + offset - 1); if ((val & 0xc0) !=3D 0x80 || (val & 7) =3D=3D 4) return false; type =3D bfd_get_8 (abfd, contents + offset - 2); return type =3D=3D 0x8b || type =3D=3D 0x2b || type =3D=3D 0x03; It seems like it's looking at subl, movl (0x8b), and addl, but bfd does not support the TLS_GOTIE relocation for kmovd. --=20 You are receiving this mail because: You are on the CC list for the bug.=