Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp993578iob; Fri, 13 May 2022 18:56:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWHAiBqrdVuUW2PNl9jzMWE3aeKOtIawIQ7QZ6WsCZF4Yo8dkE/sbJxrdi7ZvB5efdmNWR X-Received: by 2002:a05:6000:1152:b0:20c:fbb5:adff with SMTP id d18-20020a056000115200b0020cfbb5adffmr494949wrx.526.1652493379464; Fri, 13 May 2022 18:56:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652493379; cv=none; d=google.com; s=arc-20160816; b=0vAtfJbs+UOnXe1Xse110WhW0TKUSumgsom9jXgMqDSlDZXuggDGrBlFMbI0SflTjF fIoUQNIkMvOFA3Y9X788wXdWOcrjNxyiMcjx5aivNTLk4bT7Ks///F2+2/oHP2+eVXhL nRaj9AI/qUlJ8fb4XE6qVkjfUv0KOvzhFvSrd8J/p/6ZT+z3uP7Xvotn6gbr+lT75GFd e3ihNzkWjICF0ep1cvElM1wyDB5mkqWjf0yLLwSZwkbjzNlNoonQlFJI/zcmXo+oxjfI LJSC3BLxr1y2stG5RvSf2+AXczCnIU9KhPorPYKwc8tAEV3xZF4rsdNRWrCJXS0Sr930 21sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=UlX25RIpRqAiiLjppjnQXJpCjz7mllu0ANTCetbKt4E=; b=07usKcAS9DZ2HTxuwng36J6kweDdBcje3xe+oJYomyhIZzsgXDT8m+VM7oNsXlKj/H AbEoFyWMKmaoBj/9gyIFX587dsPiu8//nAy38hRMRZKoUtsXkPX9nbTIFhy6Os4UiRrV zBA9xZ4oJGthkycPnkx0Ig2bf46TFuiIso7mcC7XqaBi0ay1/xxBJHf6NEWEabsKuPMg twecTF8coNi201a/54r5NC5rgqFlt3ncV/gWk1UI6Q6OFcUBDSwSOwpZ6GUrSjDRAYOk nH6QMLrnvoxmpQ/YnxRS9axoZ+mAKehj7S2av9SFAO0uVeC2bPL9C5Om4WYLhbac+i9/ aQ3A== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m6-20020adfc586000000b00207a9f266fasi3983338wrg.990.2022.05.13.18.56.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 18:56:19 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B8C5E4622EF; Fri, 13 May 2022 17:19:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359370AbiELXGc (ORCPT + 99 others); Thu, 12 May 2022 19:06:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359345AbiELXG3 (ORCPT ); Thu, 12 May 2022 19:06:29 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47CD93E0FD; Thu, 12 May 2022 16:06:27 -0700 (PDT) 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 6D28DCE2D00; 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 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 -- 2.25.1