From: liuzhensong Date: Mon, 25 Jul 2022 02:22:27 +0000 (+0800) Subject: LoongArch: Set defaults to exec stack 0. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48ca1b26b99c8fd5bc21f5c69b6b666d9b6b9726;p=binutils-gdb.git LoongArch: Set defaults to exec stack 0. --- diff --git a/bfd/elfnn-loongarch.c b/bfd/elfnn-loongarch.c index 99d889ae11d..8d0f66ea7c1 100644 --- a/bfd/elfnn-loongarch.c +++ b/bfd/elfnn-loongarch.c @@ -132,6 +132,7 @@ struct loongarch_elf_link_hash_table #define elf_backend_want_dynrelro 1 #define elf_backend_rela_normal 1 +#define elf_backend_default_execstack 0 /* Generate a PLT header. */ diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index 10c635e9593..64b1d34f055 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -184,6 +184,7 @@ proc target_defaults_to_execstack {} { || [istarget "arc*-*-*"] || [istarget "cris*-*-*"] || [istarget "ia64*-*-*"] + || [istarget "loongarch*-*-*"] || [istarget "nios2*-*-*"] || [istarget "powerpc64*-*-*"] || [istarget "riscv*-*-*"]