From 4b60bea2e98780a2971cd87142297358f41161ec Mon Sep 17 00:00:00 2001 From: Joakim Nohlgård Date: Sun, 4 Dec 2022 20:55:35 +0100 Subject: gcc: Disable CC_GCC_ENABLE_DEFAULT_PIE on RISC-V bare metal builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -pie is not supported on riscv*-elf-ld Signed-off-by: Joakim Nohlgård --- config/cc/gcc.in | 1 + 1 file changed, 1 insertion(+) (limited to 'config') 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. -- cgit v1.2.3