aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Nohlgård <joakim@nohlgard.se>2022-12-04 20:55:35 +0100
committerChris Packham <judge.packham@gmail.com>2022-12-11 18:41:51 +1300
commit4b60bea2e98780a2971cd87142297358f41161ec (patch)
tree6f650726fe4ff79a18ccff5f785d9945999c8756
parent750133a2846c09455fc05d504054bc91a49dd9af (diff)
downloadcrosstool-ng-4b60bea2e98780a2971cd87142297358f41161ec.tar.gz
crosstool-ng-4b60bea2e98780a2971cd87142297358f41161ec.tar.bz2
crosstool-ng-4b60bea2e98780a2971cd87142297358f41161ec.zip
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>
-rw-r--r--config/cc/gcc.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/cc/gcc.in b/config/cc/gcc.in
index 9a9e7c65..e77b0716 100644
--- a/config/cc/gcc.in
+++ b/config/cc/gcc.in
@@ -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.