From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94755 invoked by alias); 2 Aug 2018 10:43:53 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 94746 invoked by uid 89); 2 Aug 2018 10:43:52 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx0a-001b2d01.pphosted.com Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: [PATCH 00/12] S390: Implement __fentry__ From: Ilya Leoshkevich In-Reply-To: Date: Thu, 02 Aug 2018 10:43:00 -0000 Cc: libc-alpha@sourceware.org, stli@linux.ibm.com Content-Transfer-Encoding: quoted-printable References: <20180802075735.3457-1-iii@linux.ibm.com> To: Florian Weimer x-cbid: 18080210-0016-0000-0000-000001EFE9CE X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18080210-0017-0000-0000-00003245164C Message-Id: <6FCC9B6F-312C-444B-B4A3-758539536264@linux.ibm.com> X-SW-Source: 2018-08/txt/msg00042.txt.bz2 > Am 02.08.2018 um 11:17 schrieb Florian Weimer : >=20 > On 08/02/2018 09:57 AM, Ilya Leoshkevich wrote: >> This patch series adds the runtime support in glibc for the -mfentry >> gcc feature introduced in [1] and [2]. >> Patches 1-9 deal with avoiding clobbering %r0 when calling lazily bound >> functions, so that the new __fentry__ symbol could be called with return >> address in that register. >=20 > Should GCC arrange for suitable ABI markup if -mfentry is used? I'm worr= ied that unexpected clobbers of r0 could be quite difficult to figure out o= therwise. I don=E2=80=99t think we need to do anything ABI-related at this point. __fentry__ itself is being newly introduced, so there is no old ABI to comply with. Instrumented functions=E2=80=99 ABI does not change, particula= rly, %r0, being a volatile register, used to be clobbered anyway. Are there other cases that I=E2=80=99m missing? > Thanks, > Florian >=20