From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 787FF3858CDA; Mon, 29 Jan 2024 11:41:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 787FF3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706528472; bh=CQ3d1ECuJ44zsLtYTCIT5deAhjd/gfA+dN78F2acQw4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QTtMhwqM7SBmdVsKLfk3jQxNGOx6gHpvsVu6WCHTV8awPld0g9aAbyIPaK+FV9S1b kaaT3KC0REv7G5QPXm4qpp8tpnWZQ0jLIpVqydNnOnqIBSZ1DWY+vHMJcnn85rZK1L yubSYEOTXTzAwZeVnQ+ZD2WcImX3oph6P87bEWpw= From: "luofengwc at qq dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/31302] glibc issue about reloc-type R_X86_64_TPOFF64 when llvm build golang project with cgo Date: Mon, 29 Jan 2024 11:41:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.38 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: luofengwc at qq dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31302 --- Comment #9 from luofeng14 --- this is glibc main function, the function init_static_tls is after the _dl_try_allocate_static_tls, this results in CHECK_STATIC_TLS failure=EF=BC= =8Cbecause dl_tls_static_size not initialled yet: LIBC_START_MAIN _dl_relocate_static_pie ();=20 ELF_DYNAMIC_RELOCATE - ELF_DYNAMIC_DO_REL=20 - _ELF_DYNAMIC_DO_RELOC - elf_dynamic_do_reloc # elf_dynamic_do_##r= eloc - elf_dynamic_do_Rela - elf_dynamic_do_Rel - elf_machine_rel - elf_machine_rela case R_X86_64_TPOFF64:=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 CHECK_STATIC_TLS =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 _dl_allocate_static_tls =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 _dl_try_allocate_static_tls=20=20 /* Perform IREL{,A} relocations. */ ARCH_SETUP_IREL (); /* The stack guard goes into the TCB, so initialize it early. */ ARCH_SETUP_TLS (); x86_setup_tls # define ARCH_SETUP_TLS() x86_setup_tls __libc_setup_tls=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 init_static_tls --=20 You are receiving this mail because: You are on the CC list for the bug.=