Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10418580rwl; Mon, 2 Jan 2023 02:11:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXv84XNniiSEnsqUFW76hYNJTGxDPLQqDdaAPr3hIGaW0zuVQPg+ofQkxR3jgKOg/w7sA9Nw X-Received: by 2002:a05:6a21:788c:b0:b2:5fcb:8e00 with SMTP id bf12-20020a056a21788c00b000b25fcb8e00mr64093536pzc.29.1672654297528; Mon, 02 Jan 2023 02:11:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672654297; cv=none; d=google.com; s=arc-20160816; b=ztguCtIOKlFAB6EyKpa0T+m8nh/mAR6MmSHXYulJxM+QY6kB2q5DaKJGXakp0A6dYE /D51qbbuBerSmHrblNoGVjRAdqWOoVIM35cywHsaRO4SdSYGGaDdCrzi6D6F+Pf9c0fw eEHYTLSoqBCKmA+RCh9s1O69QtD53Xpf2k1A6HSDrrOLVCk9bbg5FRLtdc9yYlizVGoI F+aRKbH1F4vKg2ClcMq+30yGSMJQB38LxIfNLBF806AeM4gSSiwxkpzTUObry6z3EwVr ZS5f86TRQgmd1I8/23zdg27oX9muQ+Cpht0Dd8OmnBMMnJVQ11ct4De810G85xE72BY8 lC1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ThfDYyvLzwuV0YUgkQeKoVi6btQj4eQit2wxpUN7ozQ=; b=QlEIW9oF02Rr56ujkCbZovIOt0XtELFfsuQgzZmb0JjX6tT27JZqhCWNs3aDeAbRL3 qvIf+uF3K5S5bllT0mPsy6WXrPmUwA4WXlNhtrZdQqtOFuVFaG8X89zGUJSs+p3oBqk8 AFb34zwieMpwt1ThsMLp4fVzLpHGQVEF/D4VTYGBZrJSX3S6QCww6SfH+8AyVCRQjnJ6 9vmU2pSJZrlQqSkoB5K1QjbZGcUigM2Bzgiu1wXeGpQQYewd15bROkdfzb3RO8C8Wneg HiKBdUA9lSCqp5CyMy7f8K4jlXAkWEIXDu84CuuXCxEO3C/HbboTPAHMF0E/E2OMmk/F 7jtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f17-20020a631011000000b004790511049csi28330889pgl.596.2023.01.02.02.11.29; Mon, 02 Jan 2023 02:11:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232032AbjABJxA (ORCPT + 60 others); Mon, 2 Jan 2023 04:53:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232277AbjABJwm (ORCPT ); Mon, 2 Jan 2023 04:52:42 -0500 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B5301311 for ; Mon, 2 Jan 2023 01:50:58 -0800 (PST) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 3029oduU030521; Mon, 2 Jan 2023 10:50:39 +0100 Date: Mon, 2 Jan 2023 10:50:39 +0100 From: Willy Tarreau To: Sven Schnelle Cc: "Paul E . McKenney" , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , linux-kernel@vger.kernel.org, hca@linux.ibm.com Subject: Re: [PATCH 2/5] nolibc: add support for s390 Message-ID: <20230102095039.GD29287@1wt.eu> References: <20221209141939.3634586-1-svens@linux.ibm.com> <20221209141939.3634586-3-svens@linux.ibm.com> <20221227213530.GA6390@1wt.eu> <20230102084122.GB29287@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 02, 2023 at 10:33:08AM +0100, Sven Schnelle wrote: > Willy Tarreau writes: > > > On Mon, Jan 02, 2023 at 09:17:04AM +0100, Sven Schnelle wrote: > >> The kernel compiles with z10 as minimum architecture, so > >> i'm leaning towards enforcing the same arch for nolibc. What do you think? > > > > Sure, as long as this works for most users, that's likely fine. > > Alternately, are there equivalent sequences of instructions that achieve > > the same on older architectures, and would that be relevant ? > > Well, it's only one instruction that needs to be changed - we could also > use aghi to do the same thing. Maybe that's better. > > Also i will add -m64 to the testing Makefile, it shouldn't hurt. > > > One future improvement I'll need will be to store the envp value into a > > global "environ" variable, and run over it to catch the pointer that > > follows the NULL and save it into the "_auxv" variable. I've done it for > > all other archs here already: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/wtarreau/nolibc.git/log/?h=20221227-nolibc-weak-4 > > > > I'll give it a try once I'm able to build and test your code, and may > > ask you for some help if I don't succeed in doing it. If you want to do > > it yourself, please have a look at the last commits adding environ and > > auxv to any arch of your choice, such as x86_64. > > Ok, thanks for the Heads-Up. I'll take a look. I think i would send this > as a separate Patch, so we get the initial support done first if that's ok. Yes absolutely, that was also my intent. I have not yet submitted this series. Thanks! Willy