| Message ID | 20240922092312.2061358-4-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBGWEX63QMGQEXC4L7QQ@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com
[209.85.208.72])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8FB8F40D67
for <linux-amarula@patchwork.amarulasolutions.com>;
Sun, 22 Sep 2024 11:23:39 +0200 (CEST)
Received: by mail-ed1-f72.google.com with SMTP id
4fb4d7f45d1cf-5c25cf44030sf2102053a12.0
for <linux-amarula@patchwork.amarulasolutions.com>;
Sun, 22 Sep 2024 02:23:39 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1726997019; cv=pass;
d=google.com; s=arc-20240605;
b=CILIzyhebESJCbGTRuqc5u0qrI1VUa0G36cUpL4bxjSjv7md+kTO05unM5aPszt+vp
WmVUnYlRpL3iMpSPfMYgBG3zSc8Mp/cqaXACztWRqtcs7ie3Us+x7VF4b3834x9+ujkO
4l5cmvJetLjQLZ7mVU9mv2kaFZrKe6NHKHwy0Swf2NzTKv2loh0/Grl3tZqH+pTyD3k8
iB5LOAq4/TkmtZsNwThat294KeB5E/ECznnmsi0otCw35izqltajpHkVB5T2kPz7dadc
M3lmhpTBb0vpgA75quqcYwe3I5dZyGyJ35oF9JbatcWevyJD/yhjg6zi+6RSeySQCzGj
RreQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=DRDjYIGUFpNoPjPbcxuSU9t4x1+SFbDpIda+MOGAYGQ=;
fh=OpCvQVt3bAgXP+6Zu4uitqIL65zGG0lbS8TpAJ5zkjY=;
b=OsJIlSSfeguw8CCRIveIVTey3cBws2dH7Td0WS/rODzw0W0Y86emLMMJnrZI30ZReC
14T42UEgYsQ9mvDZQhccJ4a7lIJgS0bgpvXmRTDCrXmbVj2+K1BkxW3j6E97FHu5yYzb
xQwC+OCCRc7isT/tgz1IlR1DhI1dPh8jpZlJoT9lq8MSHIwAIYRtFbcszEOhxNSCyFvq
X53yDIim623w/3EXOgI5eIITnxghN+aTPHVG8W7wmqRxt4bt3X1zr8K3S7ZtXUwZNvvf
63DsGJv2mDe4JCaBd4tNO4vrxd2Bvuis5A/sExqSi6dpIHXZa/EP/a81jLyVbwdNt1aR
Wtbw==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=FlY62uWC;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1726997019; x=1727601819;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:references:in-reply-to:message-id
:date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
bh=DRDjYIGUFpNoPjPbcxuSU9t4x1+SFbDpIda+MOGAYGQ=;
b=Yl/DR3CGHFJm9iOouwKFAziks30+lu1cdsALypw6mxVbtR3cojm7YerJaZXQ/BhNyx
gaRC5Hat9N+9J8ZgMhmkj48rf3TSbUbW9sco9bXznX3XaZo7Tmc/t2Si7l6J5XJsS+sj
QpYtPec5Q8LbF2WFr6Y3vYILL+Q4UAzvB1Ibw=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1726997019; x=1727601819;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:references:in-reply-to:message-id:date:subject:cc:to:from
:x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=DRDjYIGUFpNoPjPbcxuSU9t4x1+SFbDpIda+MOGAYGQ=;
b=PoznaLW6f/gKI/DISSUkg1AfSFQFPOgxepb5yseJFjlB5DA04UE+z8xlwqaUBicK5L
0IcGxvAIcQ9cirfKwcpf8Cjg6VmSTnFsD5/5cYFN6z9ktkbfD6Fuh+Q4Cj+oLYbt3h57
XwpA905LRSWpIDsJ6mcFAdN6Q97M6NHc16r0SOwil5fCRGvP4LvGofRYrvtkZsgtexGU
rLJA6QP3vytLtlw9BxX5tVgWwn9t7ktoiEmbOKbzSPb3clkWzvumjf5UtP/94OzjI91z
2qANc/RHU6dEa+uCmY/I+zAdzQy72hHWKNNduJc+aWKVmVq9+8IfSFayS/YA8teEvpGW
KNIw==
X-Forwarded-Encrypted: i=2;
AJvYcCWySXVvlPdJ29vzjklZgT6VlaiNhEeZvCqyImK4suHzBYsleb+V0q1DNIujIL39IYslQw/+EVqbgtxc9NbB@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YwDKQjoip24RkEzy3GshZnYxQ22Ijj3oSm91m1DbOfISzVYQ1ma
mj1bYb4v9FUVzfin1Ar/Mdw0apqa0K9zcqVmlzNrZzeSMyFLYzBSYErcMchM3zTB5A==
X-Google-Smtp-Source:
AGHT+IGo8wVOp+5PmtfGkd30E9aGboQLFBUJIjMriNpCVlqjHxQApht189pZ8cZzQnnzlEHSni+KMg==
X-Received: by 2002:a05:6402:3212:b0:5c3:d2bc:2f64 with SMTP id
4fb4d7f45d1cf-5c464df0944mr6727724a12.35.1726997019074;
Sun, 22 Sep 2024 02:23:39 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com
Received: by 2002:aa7:d043:0:b0:5c4:6687:149 with SMTP id
4fb4d7f45d1cf-5c466870297ls706692a12.1.-pod-prod-09-eu;
Sun, 22 Sep 2024 02:23:37 -0700 (PDT)
X-Forwarded-Encrypted: i=2;
AJvYcCXPVrOOq+KHNqczWhF8GxhnmNkHk8p8OcTy9A22A3yHabtC01ynLTQdFGiZgoVxoDf8ffDaMmQ8pUWIfPcv@amarulasolutions.com
X-Received: by 2002:a17:907:6095:b0:a8c:78a5:8fc4 with SMTP id
a640c23a62f3a-a90d55e0dd2mr898085166b.19.1726997017493;
Sun, 22 Sep 2024 02:23:37 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1726997017; cv=none;
d=google.com; s=arc-20160816;
b=h9HRo7wokNS0RGUvmty6qoCi/fKYOd9Fwj1s4piEK98c78Kf8XYL1RAxFq/Vfng7Rw
wUqp2pbSV6iPJk0msk41GpfcN/+uOqu/Va5Ktwxoskt3XKifDg/0VCCwAdA2pqIZ2lwi
17kGns3GTmb3+wW/Ag8SBa3igGHEOUTvF4VznO+adB+mMG50DiP8JcjXG2QU4GpTWdZ1
+5HU5aXgvu87I13WVGCZU02ByImBL84KX+ceXuwh8ESx/u2VldjWsB3GzQ5b2MRAcjz6
lhodhzS0oPXEZvr2xmnh3F4YuuPSsnFi2ntbUfN7UU5owsdiozY+l1l+Xt1Q/ySw5Igv
Z30g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=750dry+PxKwfB6Kt0e6FyToo49lr3HLwDVPYzO6t8gY=;
fh=LkhxixaE5VrZQB103YbgbHhVHQSAwfMQnXVErLbbcsU=;
b=qhbz216Y1SyS4j88YwzdmCBO/hwropqUIXz7ye0vod5V3cRQktR0j45e1nYDjizzqT
Q0HKho2ZnO6YqsMnxLXR+MHcPs1njteeFMmzcVqHFeCSgV6IG/bysM+SXTaz1QgvuZgx
o5VCOHLkUkMVx+0PCUtVDT8nOoxQlA5CpggW0olD33H2cKYZNHOGgfdiuBG0YGJ3zIcZ
kBUDaS8E2jIVtbaG6v/S2920bcFXbIK0IqiBe5nlbUVxgde8MpIzMLkSGNz56tPZ5tkA
JbBYlV3Kl6xNyv7VDr6kG1rNsi/mQyalYk99kC7k6aUZmYShp3wHaW6emwlBsum9ja5J
ueSg==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=FlY62uWC;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
a640c23a62f3a-a906133e85dsor567963566b.21.2024.09.22.02.23.37
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Sun, 22 Sep 2024 02:23:37 -0700 (PDT)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Forwarded-Encrypted: i=1;
AJvYcCXHCl4b9TJ5dnNIAFowsmbXD1kQsDGHIf0tQ8IJtLqXvjx+vtuaKU2+g24fc9L+ghaHdPz3pQZkvr1TgpYo@amarulasolutions.com
X-Received: by 2002:a17:907:e655:b0:a90:b712:d7e7 with SMTP id
a640c23a62f3a-a90d582564bmr751728566b.54.1726997016864;
Sun, 22 Sep 2024 02:23:36 -0700 (PDT)
Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it
(host-79-20-102-52.retail.telecomitalia.it. [79.20.102.52])
by smtp.gmail.com with ESMTPSA id
a640c23a62f3a-a90612b33fasm1065235866b.139.2024.09.22.02.23.35
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sun, 22 Sep 2024 02:23:36 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: buildroot@buildroot.org
Cc: Giulio Benetti <giulio.benetti@benettiengineering.com>,
Waldemar Brodkorb <wbx@openadk.org>,
Romain Naour <romain.naour@gmail.com>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
yann.morin.1998@free.fr,
Ben Wolsieffer <Ben.Wolsieffer@hefring.com>,
linux-amarula@amarulasolutions.com,
Ben Wolsieffer <ben.wolsieffer@hefring.com>
Subject: [PATCH v2 3/9] arch: make FDPIC dependent on toolchain support
Date: Sun, 22 Sep 2024 11:23:06 +0200
Message-ID: <20240922092312.2061358-4-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20240922092312.2061358-1-dario.binacchi@amarulasolutions.com>
References: <20240922092312.2061358-1-dario.binacchi@amarulasolutions.com>
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=FlY62uWC;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
add ARM FDPIC support
|
|
Commit Message
Dario Binacchi
Sept. 22, 2024, 9:23 a.m. UTC
From: Ben Wolsieffer <ben.wolsieffer@hefring.com> FDPIC support on ARM requires a certain target name, and therefore is only currently available with the Buildroot toolchain. In addition, only uClibc-ng supports FDPIC on ARM at the moment. This may need to become more complicated if we end up in a situation where each libc supports FDPIC on a different set of architectures. Signed-off-by: Ben Wolsieffer <Ben.Wolsieffer@hefring.com> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- No changes since v1 arch/Config.in | 1 + toolchain/Config.in | 4 ++++ 2 files changed, 5 insertions(+)
Comments
Hello Dario, Thanks for reposting this patch series after our discussion last week-end! On Sun, 22 Sep 2024 11:23:06 +0200 Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote: > From: Ben Wolsieffer <ben.wolsieffer@hefring.com> > > FDPIC support on ARM requires a certain target name, and therefore is > only currently available with the Buildroot toolchain. In addition, > only uClibc-ng supports FDPIC on ARM at the moment. > > This may need to become more complicated if we end up in a situation > where each libc supports FDPIC on a different set of architectures. However, I think this patch is incorrect, or more precisely it's not how we want to handle things. Instead, what we want is: - For internal toolchains, that C libraries that don't support FDPIC are made unavailable when FDPIC is selected. So basically I would add a depends on BR2_BINFMT_ELF to BR2_PACKAGE_GLIBC_ARCH_SUPPORTS and BR2_PACKAGE_MUSL_ARCH_SUPPORTS. In practice this will be a no-op as glibc and musl already have a "depends on BR2_USE_MMU", and FDPIC can only be selected on noMMU systems. - For external toolchains, I would make sure that the ARM toolchains properly depend on the relevant BR2_BINFMT_* option. Best regards, Thomas
diff --git a/arch/Config.in b/arch/Config.in index e57f4b2baa06..52efe3aabda1 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -447,6 +447,7 @@ config BR2_BINFMT_ELF config BR2_BINFMT_FDPIC bool "FDPIC" depends on BR2_ARCH_HAS_FDPIC_SUPPORT + depends on BR2_TOOLCHAIN_SUPPORTS_FDPIC select BR2_BINFMT_SUPPORTS_SHARED help ELF FDPIC binaries are based on ELF, but allow the individual diff --git a/toolchain/Config.in b/toolchain/Config.in index 6e91ab756cd4..0dd4bb5d9b8e 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -48,6 +48,7 @@ choice config BR2_TOOLCHAIN_BUILDROOT bool "Buildroot toolchain" depends on BR2_ARCH_HAS_TOOLCHAIN_BUILDROOT + select BR2_TOOLCHAIN_SUPPORTS_FDPIC if BR2_TOOLCHAIN_USES_UCLIBC config BR2_TOOLCHAIN_EXTERNAL bool "External toolchain" @@ -307,6 +308,9 @@ config BR2_TOOLCHAIN_HAS_OPENMP config BR2_TOOLCHAIN_SUPPORTS_PIE bool +config BR2_TOOLCHAIN_SUPPORTS_FDPIC + bool + config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY bool "Copy gconv libraries" depends on BR2_TOOLCHAIN_USES_GLIBC