Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2485003ybd; Mon, 24 Jun 2019 07:14:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqygpymeneWxtXKAdytmzKSF5bCElojqmV4yCx1t7adkW74P1kIGHasG21jbZ12snURDri7y X-Received: by 2002:a17:90a:b104:: with SMTP id z4mr25024437pjq.102.1561385684428; Mon, 24 Jun 2019 07:14:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561385684; cv=none; d=google.com; s=arc-20160816; b=nPiqrMPMWbRgLYjb/Ml2m6CoSv6zKzpGo7pIM6H5YLLw3uYCPyVejEW55zi70jrFQk 4AuajG4cUdak50dmnxzL7Z9tu6oL0YwLhR6hb1ik7cPtTbu/7cyfeW6Jg9hClWz08CMx 5JN0A0MPyoExBO6Fns04/6Q1pii/ZJdphM+9E6CwvjXYrKxVoYavHCRqlpKDmgBYElng dW0UKKhTguunqUb+g4qEy4HQYoJJjt8EUw8skOe2dtr9b60qTUFPbf9DMzdvz2G7Ile+ jKc6l9AVw0+8tGSdwu9VR1N9HI/aTAEM12wpR5ugb9JwdkYDFwLYmM/FbY+1+2YIrf4V +ntQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=lVi7efEyMXSuInljZFOxYkNyqzRF6ZaNOuiAyjFVxlY=; b=UbpbXv5OkxRabqYapgsWaA/FZRHJPFVtmoZdsfBnrE0oEhGgnXO7HKVzNzpT5bSMCV Y7HOTybhRsD4aLpYPqa6NPVT/+laiBLsqrT5qpp/a9RbDVp1tCE2JQulgXQnyIG6wxW6 6PgJrkgCSH/MNBSRW1B7+mwMkcWSafE7HzHSGf99T2VgITKtU+jrbfkGdcB2LdEZp/ed T5SaYffa4EM8DPQMezFc023MN/PPsIv7VrVxGpbxjQttlbmoP1mrnWjZnpElYIe/DrLA WiFJIt+Xyh7Q5hXfJyyksY1/a0a/O9ubTpvR3pfA2MhJJDdTtKFrgPwv8P4JAxKxu5Ha JnkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s59si10485080plb.294.2019.06.24.07.14.28; Mon, 24 Jun 2019 07:14:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728558AbfFXNRF (ORCPT + 99 others); Mon, 24 Jun 2019 09:17:05 -0400 Received: from verein.lst.de ([213.95.11.211]:55023 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726505AbfFXNRF (ORCPT ); Mon, 24 Jun 2019 09:17:05 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id D879268AFE; Mon, 24 Jun 2019 15:16:33 +0200 (CEST) Date: Mon, 24 Jun 2019 15:16:33 +0200 From: Christoph Hellwig To: Vladimir Murzin Cc: Christoph Hellwig , Palmer Dabbelt , Paul Walmsley , Damien Le Moal , linux-riscv@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: RISC-V nommu support v2 Message-ID: <20190624131633.GB10746@lst.de> References: <20190624054311.30256-1-hch@lst.de> <28e3d823-7b78-fa2b-5ca7-79f0c62f9ecb@arm.com> <20190624115428.GA9538@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 24, 2019 at 02:08:50PM +0100, Vladimir Murzin wrote: > True, yet my observation was that elf2flt utility assumes that address > space cannot exceed 32-bit (for header and absolute relocations). So, > from my limited point of view straightforward way to guarantee that would > be to build incoming elf in 32-bit mode (it is why I mentioned COMPAT/ILP32). > > Also one of your patches expressed somewhat related idea > > "binfmt_flat isn't the right binary format for huge executables to > start with" > > Since you said there is no support for compat/ilp32, probably I'm missing some > toolchain magic? There is no magic except for the tiny elf2flt patch, which for now is just in the buildroot repo pointed to in the cover letter (and which I plan to upstream once the kernel support has landed in Linus' tree). We only support 32-bit code and data address spaces, but we otherwise use the normal RISC-V ABI, that is 64-bit longs and pointers.