gcc: Disable CC_GCC_ENABLE_DEFAULT_PIE on RISC-V bare metal builds

-pie is not supported on riscv*-elf-ld

Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
This commit is contained in:
Joakim Nohlgård 2022-12-04 20:55:35 +01:00 committed by Chris Packham
parent 750133a284
commit 4b60bea2e9

View File

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