public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] LoongArch: Set defaults to exec stack 0.
@ 2022-07-25  2:22 liuzhensong
  2022-07-25  2:24 ` WANG Xuerui
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: liuzhensong @ 2022-07-25  2:22 UTC (permalink / raw)
  To: binutils
  Cc: i.swmail, xry111, maskray, caiyinyu, chenglulu, mengqinggang,
	xuchenghua, liuzhensong

---
 bfd/elfnn-loongarch.c       | 1 +
 ld/testsuite/ld-elf/elf.exp | 1 +
 2 files changed, 2 insertions(+)

diff --git a/bfd/elfnn-loongarch.c b/bfd/elfnn-loongarch.c
index 4efe3d9370c..43182ead8cd 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..b8829b4e3ee 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 "nios2*-*-*"]
 	|| [istarget "powerpc64*-*-*"]
 	|| [istarget "riscv*-*-*"]
+	|| [istarget "loongarch*-*-*"]
 	|| [istarget "tilegx*-*-*"]
 	|| [istarget "tilepro*-*-*"] } {
 	  return 0
-- 
2.31.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-08-01  1:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-25  2:22 [PATCH] LoongArch: Set defaults to exec stack 0 liuzhensong
2022-07-25  2:24 ` WANG Xuerui
2022-07-25  2:44   ` Xi Ruoyao
2022-07-25  7:51   ` Fangrui Song
2022-07-25  8:08 ` Andreas Schwab
2022-07-25  8:14   ` Xi Ruoyao
2022-07-25  8:35     ` Andreas Schwab
2022-07-25  9:17       ` WANG Xuerui
2022-07-25  9:18         ` Huacai Chen
2022-07-25  9:22           ` Xi Ruoyao
2022-07-25  9:44             ` WANG Xuerui
2022-07-30 19:20 ` WANG Xuerui
2022-08-01  1:10   ` liuzhensong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).