Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp435538iob; Thu, 28 Apr 2022 05:52:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiO6DF8GXVijUmM9n6R9Q5z1saPQ6CLOg+5ZOvG5uWBHDxXQ0lctlF/cTAEpO96tYYqKj0 X-Received: by 2002:a17:90b:4c47:b0:1d9:88b2:1995 with SMTP id np7-20020a17090b4c4700b001d988b21995mr20945799pjb.80.1651150332319; Thu, 28 Apr 2022 05:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651150332; cv=none; d=google.com; s=arc-20160816; b=Bf0E2r5tjLjetHFgSKmZngij1AlR6afL1wagI3Tiz6QDKHbXR8SNxM5z6rJNWf3Hh3 ZrpDaO1HIoRWN9I7SMCR4HSvzRpOJrttNFIiLiBoQLVZDIq/SYwYn5POuI3xOyky4+IF W+1GWkuQq2/yC5fn0dVdBq+83YPVsWGTF6WmstCv9r3D4vUwtDpDpq77MY4oiHDblzp1 GGcRwjpM62/6/GXUwvLGhv3XLlaKpK4bdoSrA47VBvPJYGTZ2oby2C7Hvo0pVBRLK6gC A17KVsXv9fCgy0C61B6gkx6aVAkCMD8vp/ZTNvvllyS+DCmE5EbbNSqvXnalgSQnXmT4 4c+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=nFnxkytxiDV9tiNmv6YagpRIo9s4lkmQusqhamT+HGQ=; b=zLUe6versvr+3thD2FADzn56Cil2mAHeRzDkNCIWaXhsi3Fvw6x9dWafhQ6bgzTnJI zDS2bTGDRpXFFNISntBUwJW9EH4Q6xqiN/Jwdxc7kP9QgsjjLm6B2npwGbDENW1PYVWN f3XT6Lw66xuTcVnWnQjB3Ldvant8ndME9SFTbo1NDM4j2fgc5zCfDMdKVDdRHtDz01Ro V0Kn5y8R/+7ZYtQzfboGSrTqKy9PIzZQN4EDm+yg9v+2xeDzKLEv2kN7vrzgcclHSqJk AT7OdMp2W+592iqiIEUqsggJOz7Feip89ar4uFu5zac3tD2hBaERYA9/aHu4KHsWN4Bm jjdA== 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 w17-20020a634911000000b003816043f159si364615pga.846.2022.04.28.05.51.57; Thu, 28 Apr 2022 05:52:12 -0700 (PDT) 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 S245006AbiD1HYB (ORCPT + 99 others); Thu, 28 Apr 2022 03:24:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245030AbiD1HXr (ORCPT ); Thu, 28 Apr 2022 03:23:47 -0400 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F9731D0C0; Thu, 28 Apr 2022 00:20:32 -0700 (PDT) Received: by mail-qk1-f179.google.com with SMTP id 126so2027949qkm.4; Thu, 28 Apr 2022 00:20:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nFnxkytxiDV9tiNmv6YagpRIo9s4lkmQusqhamT+HGQ=; b=G/CzdR9QHg5mcxFVTP48SfLDMvUhuHqWdJcrlxCV31FQzp36YVZHSqiA0Wifg3PAXU kYqTfFzYQ0usySiDyzt0HJw7g9Xb9Jc4J01EKkM+ULGPzB3l+uatuGNudhSNa3Nh66q+ cJDslCry/zOWu4dlz34STFH1LqOtMwRlf4O6NtLDk7JkIB3lEN1fp/wrtjI/fQi/o3VL nDSxjVCdAhw2aAxd7vH44bp5U05Cf2N54d4qxw0nnJvgzhU/jlfU1jtHbEooaIieBc6o J5Zwe8HQ1IyCD5A0bo5eo3mZP9ayhYlqfdH0Vh9UdsfeOz7N/pbGkk4C+sp6HTjqaP5H zRbA== X-Gm-Message-State: AOAM533LmKSckYwLX3fBbfHEI30uYJ0r2Sq2wYQlQPl/4tlikuU070pu fgKd7Zd/NbSeJQs8e2MBZTLRivIbXZ4uJg== X-Received: by 2002:a05:620a:4625:b0:69f:6a9a:ccd5 with SMTP id br37-20020a05620a462500b0069f6a9accd5mr9472795qkb.626.1651130431552; Thu, 28 Apr 2022 00:20:31 -0700 (PDT) Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com. [209.85.219.177]) by smtp.gmail.com with ESMTPSA id i19-20020a05620a249300b0069f805534d3sm3766066qkn.89.2022.04.28.00.20.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Apr 2022 00:20:31 -0700 (PDT) Received: by mail-yb1-f177.google.com with SMTP id d12so7439083ybc.4; Thu, 28 Apr 2022 00:20:30 -0700 (PDT) X-Received: by 2002:a25:8087:0:b0:641:dd06:577d with SMTP id n7-20020a258087000000b00641dd06577dmr29182800ybk.207.1651130430756; Thu, 28 Apr 2022 00:20:30 -0700 (PDT) MIME-Version: 1.0 References: <20220428033319.239341-1-gerg@linux-m68k.org> <20220428033319.239341-5-gerg@linux-m68k.org> In-Reply-To: <20220428033319.239341-5-gerg@linux-m68k.org> From: Geert Uytterhoeven Date: Thu, 28 Apr 2022 09:20:19 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/4] m68knommu: allow elf_fdpic loader to be selected To: Greg Ungerer Cc: "Linux/m68k" , Linux MM , Linux Kernel Mailing List , Rich Felker Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Hi Greg, On Thu, Apr 28, 2022 at 7:05 AM Greg Ungerer wrote: > The m68k architecture code is capable of supporting the binfmt_elf_fdpic > loader, so allow it to be configured. It is restricted to nommu > configurations at this time due to the MMU context structures/code not > supporting everything elf_fdpic needs when MMU is enabled. > > Signed-off-by: Greg Ungerer Reviewed-by: Geert Uytterhoeven > --- a/fs/Kconfig.binfmt > +++ b/fs/Kconfig.binfmt > @@ -58,7 +58,7 @@ config ARCH_USE_GNU_PROPERTY > config BINFMT_ELF_FDPIC > bool "Kernel support for FDPIC ELF binaries" > default y if !BINFMT_ELF > - depends on (ARM || (SUPERH && !MMU)) > + depends on (ARM || ((M68K || SUPERH) && !MMU)) While at it, you may want to drop the unneeded outer parentheses, as they make the expression harder to round, IMHO. > select ELFCORE > help > ELF FDPIC binaries are based on ELF, but allow the individual load Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds