From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3F5633858C54; Mon, 29 Jan 2024 01:23:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F5633858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706491437; bh=69QEr+BpUwj2hvZdIl5MJ+WsxVWDuul9cLey2XTUnWU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PO3jO27KGtLEPwbNBRQBiSD+sfdjuPM2GNSuwmUPloFG0f0ALBnPQp3O2AT59nGN1 HBlou0UbeIE+PuuKm1gNITsjK+HOknonclmgcN0M/EbcZCfLhjdvoqo/cWkAZFjbkB WexMQQOY0BIPIDRPoyIlDB0umyPDjat7oQKXLEBo= 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 01:23:56 +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 #5 from luofeng14 --- (In reply to Florian Weimer from comment #3) > Which linker are you using? >=20 > It is possible that for static PIE, we assume that the link editor is able > to fully relax TLS relocations, that is, compute fixed constants and put > them into the data segment or directly into the code (after instruction > relaxation). and it show some dlerror.o function .rela.dyn section sym relocate type cau= se the problem. not the constant Relocation section '.rela.dyn' at offset 0x85e0 contains 13252 entries: 00000023df28 010b00000012 R_X86_64_TPOFF64 0000000000000078 __libc_dlerror_result + 0 00000023df70 011100000012 R_X86_64_TPOFF64 0000000000000058 __libc_tsd_CTYPE_[...] + 0 00000023dfc0 025700000012 R_X86_64_TPOFF64 0000000000000068 __libc_tsd_CTYPE_B + 0 00000023dfc8 002400000012 R_X86_64_TPOFF64 0000000000000018 __libc_tsd_LO= CALE + 0 00000023dfe0 023b00000012 R_X86_64_TPOFF64 0000000000000060 __libc_tsd_CTYPE_[...] + 0 --=20 You are receiving this mail because: You are on the CC list for the bug.=