avr,pru: Disable CT_CC_GCC_ENABLE_DEFAULT_PIE

PIE is not supported by PRU and AVR backends for GCC.

This fixes LD errors when trying to link user programs with a
crosstool-NG toolchain:

  /home/dinux/x-tools/avr/lib/gcc/avr/12.2.0/../../../../avr/bin/ld: -pie not supported
  collect2: error: ld returned 1 exit status

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
This commit is contained in:
Dimitar Dimitrov 2022-09-11 19:20:02 +03:00 committed by Chris Packham
parent 1b47500875
commit 411b052361

View File

@ -201,7 +201,7 @@ config CC_GCC_ENABLE_DEFAULT_PIE
bool
prompt "Enable Position Independent Executable as default"
default y
depends on GCC_6_or_later && ! WINDOWS && ! ARCH_MIPS
depends on GCC_6_or_later && ! WINDOWS && ! ARCH_MIPS && ! ARCH_AVR && ! ARCH_PRU
help
Pass --enable-default-pie to crossgcc's configure.