From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 11723 invoked from network); 20 Apr 2020 00:29:29 -0000 Received-SPF: pass (mother.openwall.net: domain of lists.openwall.com designates 195.42.179.200 as permitted sender) receiver=inbox.vuxu.org; client-ip=195.42.179.200 envelope-from= Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with UTF8ESMTPZ; 20 Apr 2020 00:29:29 -0000 Received: (qmail 16313 invoked by uid 550); 20 Apr 2020 00:29:26 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 16292 invoked from network); 20 Apr 2020 00:29:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:references:in-reply-to:mime-version :message-id:content-transfer-encoding; bh=imCIcolOR7B1A4TEDHO6HBkSJsW1cQgUD3JjwK/tiPg=; b=mccchVGCJNZYIZZ9rqUjgkTFBG+sKlFlhH4+pV77FU2GWxyzmpWJC6Ado3L4YeHovj FvGMpiWLQ2QXHBjLNPO4hg+e0OUxveGv+R6yX22gzIs1gi6eS4RmWai98/DkE7OA1IwK H6rgAvyGPa4mpqfJB0fx5EiTOq9ydS/QVIH1rr2FB1nDaBqIhlKTlVGX1YO35brHgQsL 0pMtu9kjTWp+vKYUodCZgCOApGrX0fIoeQGPl1EETfn4OAe3M84odpRKWTjyQTxs8yhy tamjiK3ZM6bvu0qyZIHr7BwAYT/6exppY3Tk8Lle8LFVKzhk2UY0sCYEG2n8jh6/iF5T 88Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :mime-version:message-id:content-transfer-encoding; bh=imCIcolOR7B1A4TEDHO6HBkSJsW1cQgUD3JjwK/tiPg=; b=sPERyxTzbXfbnsqIIoHKR88jsK7nulfa1FGDOpnybf5k8WB4J3Df3+HZjwEx1Kpzn1 wKRYEgvaQlEZF8GzExnpL9RrQUCxbarSXhUtKf7a84hDpO+U9Uxz0IJJ/o6aWMkRiIj1 h9hyxZznqfxKdc5Gn5ipkH/qlcMt29vi/9IEriz7V6Rv35U3lOYEhllkPOOUG5W8bvuZ oLIWtkjDbB0z2pd5CfsC/VnDrxZPy1MdEuwN4fxIRsFFUQjLlnXdATs8I/+/DBw1BAEU GMbcL8xiAZ4N2/G5oGrk6h15m0jRhZJhjCVjyQwGl1qsGF8sUumAkQ9H8OiXewDvfdjC B8kw== X-Gm-Message-State: AGi0PuYhxn7flYWDWBiwcHWCWXtCUw40hA3uzfb4wDsF3aYkn6HSkRVO DIDV1rvJb0Rh4PrvqPeJz64= X-Google-Smtp-Source: APiQypJ1Dfo/ScPKElMBVsp9hDMItwSA9AWQX4RGON7Z3pxE56GCUuB8+mvbqjlGodVKxXO4eQlAHw== X-Received: by 2002:a17:90a:23ad:: with SMTP id g42mr17605654pje.35.1587342553985; Sun, 19 Apr 2020 17:29:13 -0700 (PDT) Date: Mon, 20 Apr 2020 10:27:58 +1000 From: Nicholas Piggin To: Nicholas Piggin via Libc-alpha , Szabolcs Nagy Cc: Rich Felker , libc-dev@lists.llvm.org, linuxppc-dev@lists.ozlabs.org, musl@lists.openwall.com References: <1586931450.ub4c8cq8dj.astroid@bobo.none> <20200415225539.GL11469@brightrain.aerifal.cx> <1586994952.nnxigedbu2.astroid@bobo.none> <20200416095800.GC23945@port70.net> In-Reply-To: <20200416095800.GC23945@port70.net> MIME-Version: 1.0 Message-Id: <1587341904.1r83vbudyf.astroid@bobo.none> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [musl] Powerpc Linux 'scv' system call ABI proposal take 2 Excerpts from Szabolcs Nagy's message of April 16, 2020 7:58 pm: > * Nicholas Piggin via Libc-alpha [2020-04-16 = 10:16:54 +1000]: >> Well it would have to test HWCAP and patch in or branch to two=20 >> completely different sequences including register save/restores yes. >> You could have the same asm and matching clobbers to put the sequence >> inline and then you could patch the one sc/scv instruction I suppose. >=20 > how would that 'patch' work? >=20 > there are many reasons why you don't > want libc to write its .text I guess I don't know what I'm talking about when it comes to libraries.=20 Shame if there is no good way to load-time patch libc. It's orthogonal to the scv selection though -- if you don't patch you have to=20 conditional or indirect branch however you implement it. Thanks, Nick