From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C1E323858C41; Sun, 11 Feb 2024 18:00:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C1E323858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707674403; bh=9yl0Qd0LarvCkVuHSSkJgH4CkxRHpr2rtmz+UKWMdoo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kK25NQcbIockiJ3l52ljMUwjmCwsPr/bhjQcvH7T7Z5evDAFMkT2WkGhiQNZDvkC/ i+UWI18ch/SAXa00XCQIh5h/d+dUMyxgHT1eL5HnYFTGxbv++IddtoW3pACvETIGTb R8YfyckzD/FtV3urXA+uVyLS0hnZ0EZfE/6QFtcU= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113874] GNU2 TLS descriptor calls do not follow psABI on x86_64-linux-gnu Date: Sun, 11 Feb 2024 18:00:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: ABI, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.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://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113874 --- Comment #5 from Jakub Jelinek --- (In reply to H.J. Lu from comment #4) > (In reply to H.J. Lu from comment #3) > > Created attachment 57385 [details] > > A patch > >=20 > > Try this. >=20 > This doesn't work properly. To work around in ld.so, _dl_tlsdesc_dynamic > needs > to save and restore ALL registers, which can be expensive. Or it could be compiled with options to make sure it doesn't use vector registers etc., and only save/restore if it needs to call into some code wh= ere libc can't afford that (say allocate memory).=