From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0633B3858D32; Mon, 29 Jan 2024 01:33:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0633B3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706491995; bh=bT/CvTWfBDvgAExst4J20Uc4usSVmhY44E5lBxNFK44=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VWWN/yxUKBk7KIiOjn1XZu1T6jAYe1enkXEKRBt8OOdmVw9RCkYkouBKZnOilNem/ 84LBg5umE09myIA9nKNIGq2JAwLgKM2Ykeh8MYygQLPefG2Wp2WHpYeAKQj7zxNPda I7X1bq3IVfhms4oqd3Yh9T0tqkdyed1fD7hIIY5c= 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:33:14 +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 #6 from luofeng14 --- (In reply to luofeng14 from comment #5) > (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 a= ble > > 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). >=20 > and it show some dlerror.o function .rela.dyn section sym relocate type > cause the problem. not the constant >=20 > 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_LOCALE + 0 > 00000023dfe0 023b00000012 R_X86_64_TPOFF64 0000000000000060 > __libc_tsd_CTYPE_[...] + 0 sorry, ____libc_dlerror_result is var not function; thread struct dl_action_result *__libc_dlerror_result --=20 You are receiving this mail because: You are on the CC list for the bug.=