LoongArch: Set defaults to exec stack 0.
authorliuzhensong <liuzhensong@loongson.cn>
Mon, 25 Jul 2022 02:22:27 +0000 (10:22 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Mon, 1 Aug 2022 01:05:00 +0000 (09:05 +0800)
bfd/elfnn-loongarch.c
ld/testsuite/ld-elf/elf.exp

index 99d889ae11d4b6fbd143cc8be1bbfd4119c7a7b8..8d0f66ea7c1b482fbac684818d560f17314b4bd1 100644 (file)
@@ -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.  */
 
index 10c635e95932af82cc00464b0301db77c3475d62..64b1d34f0551308db58703957286252ecc9dee5f 100644 (file)
@@ -184,6 +184,7 @@ proc target_defaults_to_execstack {} {
        || [istarget "arc*-*-*"]
        || [istarget "cris*-*-*"]
        || [istarget "ia64*-*-*"]
+       || [istarget "loongarch*-*-*"]
        || [istarget "nios2*-*-*"]
        || [istarget "powerpc64*-*-*"]
        || [istarget "riscv*-*-*"]