Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1216120ybe; Mon, 2 Sep 2019 16:55:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEE++dpwmx5HLdHWv6uDuKTiIWtyuHmRinAa8l5qRJEGL4T/ojbYVXatyveQDLEtJY3SzJ X-Received: by 2002:a17:902:aa8a:: with SMTP id d10mr31180641plr.265.1567468508853; Mon, 02 Sep 2019 16:55:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567468508; cv=none; d=google.com; s=arc-20160816; b=IvOa4RJ7aexDn596EBI2vU8G5urtrAD82W51BxqVFyKZudGm4Fyzrq/01cKCOh08nP 7hsm3XiNwhRiPhM2GrGgrIbJoLmhvZx2+OnOWXOiVvBnYOz0oyGK+nrm1VEL/ZFiXgem qaIaapBO1aBuAkR2KGcrZNsi2ZNEFsuNYGNYlbtPLu7l1rj6B3ypppqR4hgBvW3sqSiS mN0myr66jHFN/XsyUmyMDGLVMFkNfkR1rphasrjHEvk3JlHcVwnfPCrkXd6ockv/Bk8u IkAipCJpo7YW0Lza+LLzzrcOVjLYU6wh6FED18JdPWlQ4XFEJAeomRo99R4+Y/bwqfYg S/qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=HZIqzFinwYOEJmZZhqHzF7J6L30Z6L2GB8VTGKvilLU=; b=rYjjlKv+Y5Tnxa1/9fGTALcwDrhmXsgMN385cgLxv01Sy5BdfpqyY0IKJymMqMMs2g GD8c9dZV5WgWY7HLDOUUudalf11A0NPwa0qP13ipItjNmruMj9EIdvW9lfK/QmLfxhNk wGg8JNoIqRE6rjmnRtn5jHldpIeKo/WG1xBa27G4AX1XaXUyuYI/QlSuReJXdxUZ6H6o U6/raaxrYPOzFOH4J9yZbzwuwkZFT8rrBhPAsSOztOOtZix0uDrvMd0QEC97qh4eUjVc UoEzbKeENnXUlEDWkN3nEcAj9nzYVcxM+VkI4R8/JtWTY4sIm3tgdRGSDI5cUIQlFeSH hIAw== 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 o12si12617179pgl.448.2019.09.02.16.54.53; Mon, 02 Sep 2019 16:55:08 -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 S1727914AbfIBXyC (ORCPT + 99 others); Mon, 2 Sep 2019 19:54:02 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:36863 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726775AbfIBXyB (ORCPT ); Mon, 2 Sep 2019 19:54:01 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 46Mn3n2Lzbz9s7T; Tue, 3 Sep 2019 09:53:57 +1000 (AEST) From: Michael Ellerman To: Segher Boessenkool Cc: Michal Suchanek , linuxppc-dev@lists.ozlabs.org, Benjamin Herrenschmidt , Paul Mackerras , Alexander Viro , Nicholas Piggin , Christophe Leroy , Breno Leitao , Arnd Bergmann , Heiko Carstens , Greg Kroah-Hartman , Firoz Khan , Thomas Gleixner , Joel Stanley , Hari Bathini , Michael Neuling , Andrew Donnellan , Russell Currey , Diana Craciun , "Eric W. Biederman" , David Hildenbrand , Allison Randal , Andrew Morton , Madhavan Srinivasan , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v7 5/6] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default. In-Reply-To: <20190902130008.GZ31406@gate.crashing.org> References: <87ftlftpy7.fsf@mpe.ellerman.id.au> <20190902130008.GZ31406@gate.crashing.org> Date: Tue, 03 Sep 2019 09:53:56 +1000 Message-ID: <87k1aqs19n.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Segher Boessenkool writes: > On Mon, Sep 02, 2019 at 12:03:12PM +1000, Michael Ellerman wrote: >> Michal Suchanek writes: >> > On bigendian ppc64 it is common to have 32bit legacy binaries but much >> > less so on littleendian. >> >> I think the toolchain people will tell you that there is no 32-bit >> little endian ABI defined at all, if anything works it's by accident. ^ v2 > There of course is a lot of powerpcle-* support. The ABI used for it > on linux is the SYSV ABI, just like on BE 32-bit. I was talking about ELFv2, which is 64-bit only. But that was based on me thinking we had a hard assumption in the kernel that ppc64le kernels always expect ELFv2 userland. Looking at the code though I was wrong about that, it looks like we will run little endian ELFv1 binaries, though I don't think anyone is testing it. > There also is specific powerpcle-linux support in GCC, and in binutils, > too. Also, config.guess/config.sub supports it. Half a year ago this > all built fine (no, I don't test it often either). > > I don't think glibc supports it though, so I wonder if anyone builds an > actual system with it? Maybe busybox or the like? > >> So I think we should not make this selectable, unless someone puts their >> hand up to say they want it and are willing to test it and keep it >> working. > > What about actual 32-bit LE systems? Does anyone still use those? Not that I've ever heard of. cheers