From patchwork Thu May 12 23:06:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Ungerer X-Patchwork-Id: 12848184 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98112C433F5 for ; Thu, 12 May 2022 23:06:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C7A176B0073; Thu, 12 May 2022 19:06:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C294E6B0075; Thu, 12 May 2022 19:06:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AF2836B0078; Thu, 12 May 2022 19:06:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 9C97D6B0073 for ; Thu, 12 May 2022 19:06:30 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 60E2221216 for ; Thu, 12 May 2022 23:06:30 +0000 (UTC) X-FDA: 79458626940.05.E5045CF Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf01.hostedemail.com (Postfix) with ESMTP id 1A23740008 for ; Thu, 12 May 2022 23:06:16 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 4D58CCE2A77; Thu, 12 May 2022 23:06:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A4B3C34113; Thu, 12 May 2022 23:06:23 +0000 (UTC) From: Greg Ungerer To: linux-m68k@vger.kernel.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, dalias@libc.org, Greg Ungerer Subject: [PATCH v2 4/4] m68knommu: allow elf_fdpic loader to be selected Date: Fri, 13 May 2022 09:06:02 +1000 Message-Id: <20220512230602.1408871-1-gerg@linux-m68k.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Authentication-Results: imf01.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf01.hostedemail.com: domain of "SRS0=2lTI=VU=linux-m68k.org=gerg@kernel.org" designates 145.40.73.55 as permitted sender) smtp.mailfrom="SRS0=2lTI=VU=linux-m68k.org=gerg@kernel.org" X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 1A23740008 X-Rspam-User: X-Stat-Signature: xwaqjcdqnnt935tbidm4mn5riaw1gd7c X-HE-Tag: 1652396776-328388 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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. Link: https://lore.kernel.org/linux-m68k/20220428033319.239341-1-gerg@linux-m68k.org/ Signed-off-by: Greg Ungerer --- fs/Kconfig.binfmt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) v2: remove superfluous surrounding "(" ")" diff --git a/fs/Kconfig.binfmt b/fs/Kconfig.binfmt index 21c6332fa785..fb325b3aa4b0 100644 --- 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) select ELFCORE help ELF FDPIC binaries are based on ELF, but allow the individual load