From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Cc: Romain Naour <romain.naour@gmail.com>,
yann.morin.1998@free.fr, buildroot@buildroot.org,
Giulio Benetti <giulio.benetti@benettiengineering.com>,
linux-amarula@amarulasolutions.com,
Ben Wolsieffer <Ben.Wolsieffer@hefring.com>
Subject: Re: [Buildroot] [PATCH v2 3/9] arch: make FDPIC dependent on toolchain support
Date: Sun, 22 Sep 2024 12:06:36 +0200 [thread overview]
Message-ID: <20240922120636.30649fc3@windsurf> (raw)
In-Reply-To: <20240922092312.2061358-4-dario.binacchi@amarulasolutions.com>
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
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-09-22 10:06 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-22 9:23 [Buildroot] [PATCH v2 0/9] add ARM FDPIC support Dario Binacchi
2024-09-22 9:23 ` [Buildroot] [PATCH v2 1/9] Revert: "arch: drop now useless support for FDPIC" Dario Binacchi
2024-09-22 9:23 ` [Buildroot] [PATCH v2 2/9] arch: don't enable FDPIC binaries by default Dario Binacchi
2024-09-22 9:23 ` [Buildroot] [PATCH v2 3/9] arch: make FDPIC dependent on toolchain support Dario Binacchi
2024-09-22 10:06 ` Thomas Petazzoni via buildroot [this message]
2024-09-22 9:23 ` [Buildroot] [PATCH v2 4/9] arch/arm: add support for FDPIC Dario Binacchi
2024-09-22 10:08 ` Thomas Petazzoni via buildroot
2024-09-22 9:23 ` [Buildroot] [PATCH v2 5/9] boot/uboot: pass -mno-fdpic if FDPIC is enabled Dario Binacchi
2024-09-22 10:10 ` Thomas Petazzoni via buildroot
2024-09-22 9:23 ` [Buildroot] [PATCH v2 6/9] linux: " Dario Binacchi
2024-09-22 9:23 ` [Buildroot] [PATCH v2 7/9] package/uclibc: enable NPTL on no-MMU ARM w/ FDPIC Dario Binacchi
2024-09-22 9:23 ` [Buildroot] [PATCH v2 8/9] package/busybox: remove STATIC from busybox-minimal.config Dario Binacchi
2024-09-22 9:23 ` [Buildroot] [PATCH v2 9/9] configs/stm32f746_disco_sd: new defconfig Dario Binacchi
2024-09-22 10:14 ` [Buildroot] [PATCH v2 0/9] add ARM FDPIC support Thomas Petazzoni via buildroot
2024-09-22 15:36 ` Waldemar Brodkorb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240922120636.30649fc3@windsurf \
--to=buildroot@buildroot.org \
--cc=Ben.Wolsieffer@hefring.com \
--cc=dario.binacchi@amarulasolutions.com \
--cc=giulio.benetti@benettiengineering.com \
--cc=linux-amarula@amarulasolutions.com \
--cc=romain.naour@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=yann.morin.1998@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox