From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C384F3858C60; Mon, 29 Jan 2024 01:16:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C384F3858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706490997; bh=hWzB31DVY6KQLY+5KfeTPKt6ryDy1rWL+ohER/rUVuw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Pu4LZBm7l3/WKs32M9GPEdGy66c4WPHUCfeLS80X1x3d2G6qH+laQ855D6a/7A9NF 2V09tDsb8/6iVwAF8LeTT+t3FL013KLEqv+wQ2UzZXUoAFk142pHvCzakidGtHBtbh 32/3DDGvLXqPCSC5uy7jl/CuMo6ARFOqlAuDRqmU= 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:16:37 +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 #4 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). i use go build -x, it print the extld is clang, when i chang extld =3D gcc,= it runs success. /usr/lib/golang/pkg/tool/linux_amd64/link -o $WORK/b001/exe/a.out -importcfg $WORK/b001/importcfg.link -installsuffix shared -buildmode=3Dpie -buildid=3Dd4xaXJFWrXP2j7-zXtDh/3XIk6UDso2SczQsnY03H/wEC6IRgel1j8WkFVdesn/d= 4xaXJFWrXP2j7-zXtDh -buildid=3Dnone -tmpdir=3D. -extldflags=3D-ftrapv -extldflags=3D-Wl,-z,relr= o,-z,now -linkmode=3Dexternal -extldflags=3D-static-pie -extld=3Dclang /root/.cache/go-build/39/399acc4b7bd65f1480c7c9fa0834a2240dfb9d7dc277b62a78= 7491dbd1b64ed3-d --=20 You are receiving this mail because: You are on the CC list for the bug.=