From patchwork Thu Apr 28 03:33:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Ungerer X-Patchwork-Id: 12829945 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 91FB8C433EF for ; Thu, 28 Apr 2022 03:35:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 272876B0075; Wed, 27 Apr 2022 23:35:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 221206B0078; Wed, 27 Apr 2022 23:35:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0E9A96B007B; Wed, 27 Apr 2022 23:35:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.28]) by kanga.kvack.org (Postfix) with ESMTP id F3EBC6B0075 for ; Wed, 27 Apr 2022 23:35:07 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id D898D218E4 for ; Thu, 28 Apr 2022 03:35:07 +0000 (UTC) X-FDA: 79404871854.08.293165E Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf25.hostedemail.com (Postfix) with ESMTP id EE64FA0057 for ; Thu, 28 Apr 2022 03:34:57 +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 dfw.source.kernel.org (Postfix) with ESMTPS id 95953618FB; Thu, 28 Apr 2022 03:35:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CE6CC385A9; Thu, 28 Apr 2022 03:35:04 +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 4/4] m68knommu: allow elf_fdpic loader to be selected Date: Thu, 28 Apr 2022 13:33:19 +1000 Message-Id: <20220428033319.239341-5-gerg@linux-m68k.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220428033319.239341-1-gerg@linux-m68k.org> References: <20220428033319.239341-1-gerg@linux-m68k.org> MIME-Version: 1.0 X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: EE64FA0057 X-Stat-Signature: 5yt8hjys57uypkn6975zfiwycjq4e399 X-Rspam-User: Authentication-Results: imf25.hostedemail.com; dkim=none; spf=pass (imf25.hostedemail.com: domain of "SRS0=aK2k=VG=linux-m68k.org=gerg@kernel.org" designates 139.178.84.217 as permitted sender) smtp.mailfrom="SRS0=aK2k=VG=linux-m68k.org=gerg@kernel.org"; dmarc=none X-HE-Tag: 1651116897-33432 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. Signed-off-by: Greg Ungerer Reviewed-by: Geert Uytterhoeven --- fs/Kconfig.binfmt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/Kconfig.binfmt b/fs/Kconfig.binfmt index 21c6332fa785..2666398120c4 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