@@ -435,6 +435,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
@@ -49,6 +49,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"
@@ -269,6 +270,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
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> --- arch/Config.in | 1 + toolchain/Config.in | 4 ++++ 2 files changed, 5 insertions(+)