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 4F1A0CE8D49 for ; Thu, 19 Sep 2024 04:00:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 194B6849DF; Thu, 19 Sep 2024 04:00:15 +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 G48Doqye2f8X; Thu, 19 Sep 2024 04:00:14 +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 3A56E849D6 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 3A56E849D6; Thu, 19 Sep 2024 04:00:13 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 7D4D01BF215 for ; Thu, 19 Sep 2024 03:59:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id D09A54278F for ; Thu, 19 Sep 2024 03:59:52 +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 Q1hpQQVNolvc for ; Thu, 19 Sep 2024 03:59:52 +0000 (UTC) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=89.238.66.15; helo=helium.openadk.org; envelope-from=wbx@helium.openadk.org; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org CD7304278D DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org CD7304278D Received: from helium.openadk.org (helium.openadk.org [89.238.66.15]) by smtp4.osuosl.org (Postfix) with ESMTPS id CD7304278D for ; Thu, 19 Sep 2024 03:59:51 +0000 (UTC) Received: by helium.openadk.org (Postfix, from userid 1000) id B438E3537473; Thu, 19 Sep 2024 05:53:36 +0200 (CEST) From: Waldemar Brodkorb To: buildroot@buildroot.org Date: Thu, 19 Sep 2024 05:53:03 +0200 Message-Id: <20240919035308.2622723-5-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=1726718017; bh=fGLRaXvtz+y2Itk6bJs7SXzowt7YQxkHKHoW591n6ws=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WY3M4McdEPh14BW/rZ5RExQbbipdvmcuv6yQZNc3/YdavbDrCjdiL9++bxKYICy2S TPFUZKOdFsp9j+TIAxSGNcPUg2gzDKuXoOcyr/sP/CjybL7aCUurqJfXXU3IBm4DgZ LhyFPJ5pCVY3n6zW8FmnPOn25q1H+B8swK64CX9Alo63Y4RNZ/95PWLNb74fdhmvhv gcrIz5HAqqK4FZU5KWaxyjFygh9lJbNfxau6Oaa8CGWbCdJV4UcVA0RXAs9rlsysBB OWKkq3VNZa5nVeBgHkcbwQia1z6AZwPiTkIjCM+a7QPoP5j8WUZJws5rhSXhHUpcVW kBJI/DXV6NENA== 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=WY3M4Mcd Subject: [Buildroot] [PATCH 4/9] arch/arm: add 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 Linux on ARM supports FDPIC binaries intended for use on no-MMU systems. This patch enables support for building a toolchain that produces FDPIC binaries. The target name for a FDPIC toolchain must be arm--uclinuxfdpiceabi, which doesn't follow the standard format and requires a special case. According to the kernel help for CONFIG_BINFMT_ELF_FDPIC, "It is also possible to run FDPIC ELF binaries on MMU linux," so FDPIC support is available on all ARM platforms, not just no-MMU. Signed-off-by: Ben Wolsieffer Signed-off-by: Waldemar Brodkorb --- arch/Config.in | 1 + package/Makefile.in | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/arch/Config.in b/arch/Config.in index 52efe3aabd..cd258b2530 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -39,6 +39,7 @@ config BR2_arceb config BR2_arm bool "ARM (little endian)" + select BR2_ARCH_HAS_FDPIC_SUPPORT # MMU support is set by the subarchitecture file, arch/Config.in.arm help ARM is a 32-bit reduced instruction set computer (RISC) diff --git a/package/Makefile.in b/package/Makefile.in index 808b71a93e..829636900b 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -39,7 +39,13 @@ $(error BR2_TOOLCHAIN_BUILDROOT_VENDOR cannot be 'unknown'. \ endif # Compute GNU_TARGET_NAME +# FDPIC on ARM requires a special target name: it has no OS field and must +# use the suffix -uclinuxfdpiceabi. +ifeq ($(BR2_arm)$(BR2_armeb):$(BR2_BINFMT_FDPIC),y:y) +GNU_TARGET_NAME = $(ARCH)-$(TARGET_VENDOR)-uclinuxfdpiceabi +else GNU_TARGET_NAME = $(ARCH)-$(TARGET_VENDOR)-$(TARGET_OS)-$(LIBC)$(ABI) +endif # FLAT binary format needs uclinux, except RISC-V which needs the # regular linux name. -- 2.30.2 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot