summaryrefslogtreecommitdiff
path: root/bfd/elfxx-target.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2007-02-19 12:44:18 +0000
committerAlan Modra <amodra@bigpond.net.au>2007-02-19 12:44:18 +0000
commit0043a8dc895617dbb33505b80309c0875fd62eca (patch)
tree847ae092e7f27099b85d1f3ec5b9489d3eadc30d /bfd/elfxx-target.h
parenta74ce1636f541ae7ee1d74865966255f3176b31c (diff)
downloadbinutils-redhat-0043a8dc895617dbb33505b80309c0875fd62eca.tar.gz
* elf-bfd.h (struct elf_backend_data): Add default_execstack.
* elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack. * elfxx-target.h (elf_backend_default_execstack): Define to 1. (elfNN_bed): Init new field. * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
Diffstat (limited to 'bfd/elfxx-target.h')
-rw-r--r--bfd/elfxx-target.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index a09376bdde..c7be5771c0 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -103,6 +103,9 @@
#ifndef elf_backend_want_p_paddr_set_to_zero
#define elf_backend_want_p_paddr_set_to_zero 0
#endif
+#ifndef elf_backend_default_execstack
+#define elf_backend_default_execstack 1
+#endif
#define bfd_elfNN_bfd_debug_info_start bfd_void
#define bfd_elfNN_bfd_debug_info_end bfd_void
@@ -683,7 +686,8 @@ static struct elf_backend_data elfNN_bed =
elf_backend_can_refcount,
elf_backend_want_got_sym,
elf_backend_want_dynbss,
- elf_backend_want_p_paddr_set_to_zero
+ elf_backend_want_p_paddr_set_to_zero,
+ elf_backend_default_execstack
};
/* Forward declaration for use when initialising alternative_target field. */