This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH, nios2] Define elf_backend_default_execstack
- From: Chung-Lin Tang <cltang at codesourcery dot com>
- To: Binutils <binutils at sourceware dot org>
- Cc: Sandra Loosemore <sandra at codesourcery dot com>
- Date: Tue, 20 Jan 2015 00:20:09 +0800
- Subject: [PATCH, nios2] Define elf_backend_default_execstack
- Authentication-results: sourceware.org; auth=none
Hi Sandra,
Following the new conventions for nios2-linux, the stack should by
default be non-executable. Ok to install this patch for trunk? (and for
2.24, 2.25 branches as well)
Thanks,
Chung-Lin
* bfd/elf32-nios2.c (elf_backend_default_execstack): Define as 0.
diff --git a/bfd/elf32-nios2.c b/bfd/elf32-nios2.c
index 5877d8f..4be71b8 100644
--- a/bfd/elf32-nios2.c
+++ b/bfd/elf32-nios2.c
@@ -5307,5 +5307,6 @@ const struct bfd_elf_special_section elf32_nios2_special_sections[] =
#define TARGET_BIG_NAME "elf32-bignios2"
#define elf_backend_got_header_size 12
+#define elf_backend_default_execstack 0
#include "elf32-target.h"