aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-02-19 12:44:18 +0000
committerAlan Modra <amodra@gmail.com>2007-02-19 12:44:18 +0000
commit6bfdb61b0cfa7f8e483cacc6802188a8b211fbbd (patch)
tree68dc2ba9d4ad6f8b60c437fdde307c7c62d880f5 /bfd/elf-bfd.h
parentc88471452a9c275da39f0cdcd2c05c3c7a4e7e4a (diff)
downloadfsf-binutils-gdb-6bfdb61b0cfa7f8e483cacc6802188a8b211fbbd.zip
fsf-binutils-gdb-6bfdb61b0cfa7f8e483cacc6802188a8b211fbbd.tar.gz
fsf-binutils-gdb-6bfdb61b0cfa7f8e483cacc6802188a8b211fbbd.tar.bz2
* 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/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 151c5d0..a0e6391 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -1106,10 +1106,17 @@ struct elf_backend_data
unsigned can_refcount : 1;
unsigned want_got_sym : 1;
unsigned want_dynbss : 1;
- /* Targets which do not support physical addressing often require
- that the p_paddr field in the section header to be set to zero.
- This field indicates whether this behavior is required. */
+
+ /* Targets which do not support physical addressing often require
+ that the p_paddr field in the section header to be set to zero.
+ This field indicates whether this behavior is required. */
unsigned want_p_paddr_set_to_zero : 1;
+
+ /* True if an object file lacking a .note.GNU-stack section
+ should be assumed to be requesting exec stack. At least one
+ other file in the link needs to have a .note.GNU-stack section
+ for a PT_GNU_STACK segment to be created. */
+ unsigned default_execstack : 1;
};
/* Information stored for each BFD section in an ELF file. This