aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/elf32-pru.c2
-rw-r--r--ld/testsuite/ld-elf/elf.exp1
2 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elf32-pru.c b/bfd/elf32-pru.c
index 7a75fbd..a6ce478 100644
--- a/bfd/elf32-pru.c
+++ b/bfd/elf32-pru.c
@@ -1603,6 +1603,8 @@ pru_elf32_link_hash_table_create (bfd *abfd)
#define bfd_elf32_bfd_relax_section pru_elf32_relax_section
#define elf_backend_can_gc_sections 1
+#define elf_backend_default_execstack 0
+
#define TARGET_LITTLE_SYM pru_elf32_vec
#define TARGET_LITTLE_NAME "elf32-pru"
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp
index e4d8bee..f9c74bf 100644
--- a/ld/testsuite/ld-elf/elf.exp
+++ b/ld/testsuite/ld-elf/elf.exp
@@ -187,6 +187,7 @@ proc target_defaults_to_execstack {} {
|| [istarget "loongarch*-*-*"]
|| [istarget "nios2*-*-*"]
|| [istarget "powerpc64*-*-*"]
+ || [istarget "pru*-*-*"]
|| [istarget "riscv*-*-*"]
|| [istarget "tilegx*-*-*"]
|| [istarget "tilepro*-*-*"] } {