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 smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 90842CE8D46 for ; Thu, 19 Sep 2024 04:00:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5ACFD849DA; Thu, 19 Sep 2024 04:00:21 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id H_AeXzPN1th1; Thu, 19 Sep 2024 04:00:20 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 06153849F5 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 06153849F5; Thu, 19 Sep 2024 04:00:20 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 90E961BF215 for ; Thu, 19 Sep 2024 03:59:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 699BD4278E for ; Thu, 19 Sep 2024 03:59:53 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id co56kv5bozaw for ; Thu, 19 Sep 2024 03:59:52 +0000 (UTC) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=2a00:1828:2000:679::23; helo=helium.openadk.org; envelope-from=wbx@helium.openadk.org; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org 5C79D42727 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 5C79D42727 Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) by smtp4.osuosl.org (Postfix) with ESMTPS id 5C79D42727 for ; Thu, 19 Sep 2024 03:59:51 +0000 (UTC) Received: by helium.openadk.org (Postfix, from userid 1000) id 874B9353500C; Thu, 19 Sep 2024 05:53:36 +0200 (CEST) From: Waldemar Brodkorb To: buildroot@buildroot.org Date: Thu, 19 Sep 2024 05:53:00 +0200 Message-Id: <20240919035308.2622723-2-wbx@openadk.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240919035308.2622723-1-wbx@openadk.org> References: <20240919035308.2622723-1-wbx@openadk.org> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openadk.org; s=2022; t=1726718016; bh=Jotw4kQTFTgtF5vwRaEarzZ2zO4dl9zcMLqdJkfjcEU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IC9w2L7xf4PrpdOyjpAEqdvGarwGZkEuA9bTxb32E+TA5n6HmXNkG1HYPjGHi3430 l9HDCxZIQBMvbPXx0DRuuZGvmWZGJRzutAMjhJ9t3F4Er3Ts5uy0F3jr/s2X77pwCH WfBB5fwc8v6umlrNEgKxN0qx2raCNzPG7dGg/6p+J3ZDuwTavBkeuhddLXMTvSBeFq ewBkXhSzFsbaX3mniUghUfuYCqQWwD5mWBkSKjY+bO6DR1d9Tww6nvek+HtWlu1WXR 1gT4jLCdx5qslRgdpyONWuPKIUNX8aCWokxYlT8XazzbppExk8QrLIpFIxIRXWfjHU P6SWsrGpz4Sdg== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dmarc=none (p=none dis=none) header.from=openadk.org X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=openadk.org header.i=@openadk.org header.a=rsa-sha256 header.s=2022 header.b=IC9w2L7x Subject: [Buildroot] [PATCH 1/9] Revert: "arch: drop now useless support for FDPIC" X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ben Wolsieffer Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Ben Wolsieffer This reverts commit 58dcd28dfbed481becb822b009583a63efbc6ffa. ARM supports FDPIC, so this code is needed once again. Signed-off-by: Ben Wolsieffer Signed-off-by: Waldemar Brodkorb --- arch/Config.in | 14 ++++++++++++++ package/uclibc/uclibc.mk | 7 +++++++ 2 files changed, 21 insertions(+) diff --git a/arch/Config.in b/arch/Config.in index 2e7ac080ef..bd5f9ce470 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -12,6 +12,9 @@ config BR2_SOFT_FLOAT config BR2_USE_MMU bool +config BR2_ARCH_HAS_FDPIC_SUPPORT + bool + choice prompt "Target Architecture" default BR2_i386 @@ -430,6 +433,7 @@ endif choice prompt "Target Binary Format" default BR2_BINFMT_ELF if BR2_USE_MMU + default BR2_BINFMT_FDPIC if BR2_ARCH_HAS_FDPIC_SUPPORT default BR2_BINFMT_FLAT config BR2_BINFMT_ELF @@ -441,6 +445,16 @@ config BR2_BINFMT_ELF and executables used across different architectures and operating systems. +config BR2_BINFMT_FDPIC + bool "FDPIC" + depends on BR2_ARCH_HAS_FDPIC_SUPPORT + select BR2_BINFMT_SUPPORTS_SHARED + help + ELF FDPIC binaries are based on ELF, but allow the individual + load segments of a binary to be located in memory + independently of each other. This makes this format ideal for + use in environments where no MMU is available. + config BR2_BINFMT_FLAT bool "FLAT" depends on !BR2_USE_MMU diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk index de834bac4f..600d72ce7b 100644 --- a/package/uclibc/uclibc.mk +++ b/package/uclibc/uclibc.mk @@ -57,6 +57,13 @@ UCLIBC_LOCALES = \ endif # noMMU binary formats +ifeq ($(BR2_BINFMT_FDPIC),y) +define UCLIBC_BINFMT_CONFIG + $(call KCONFIG_DISABLE_OPT,UCLIBC_FORMAT_FLAT,$(@D)/.config) + $(call KCONFIG_DISABLE_OPT,UCLIBC_FORMAT_FLAT_SEP_DATA,$(@D)/.config) + $(call KCONFIG_ENABLE_OPT,UCLIBC_FORMAT_FDPIC_ELF,$(@D)/.config) +endef +endif ifeq ($(BR2_BINFMT_FLAT),y) define UCLIBC_BINFMT_CONFIG $(call KCONFIG_ENABLE_OPT,UCLIBC_FORMAT_FLAT) -- 2.30.2 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot