diff options
author | Jakub Jelinek <jakub@redhat.com> | 2003-06-03 22:27:23 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2003-06-03 22:27:23 +0000 |
commit | 2aea7f3e4704bf6509a8f1cd3b89ad0ba78814a4 (patch) | |
tree | 4fabdab53a6845a5a678ddbfb32aaf2cf5e5d12c /include/bfdlink.h | |
parent | ba64818d65eb7adb00786cff065e867e542277b4 (diff) | |
download | cygnal-2aea7f3e4704bf6509a8f1cd3b89ad0ba78814a4.tar.gz cygnal-2aea7f3e4704bf6509a8f1cd3b89ad0ba78814a4.tar.bz2 cygnal-2aea7f3e4704bf6509a8f1cd3b89ad0ba78814a4.zip |
binutils/
* readelf.c (get_segment_type): Handle PT_GNU_STACK.
bfd/
* elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_STACK.
(bfd_section_from_phdr): Likewise.
(map_sections_to_segments): Create PT_GNU_STACK segment header.
(get_program_header_size): Count with PT_GNU_STACK.
* elf-bfd.h (struct elf_obj_tdata): Add stack_flags.
* elflink.h (bfd_elfNN_size_dynamic_sections): Set stack_flags.
include/
* bfdlink.h (struct bfd_link_info): Add execstack and noexecstack.
* elf/common.h (PT_GNU_STACK): Define.
ld/
* ldgram.y (phdr_type): Grok PT_GNU_STACK.
* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
-z execstack and -z noexecstack.
(gld${EMULATION_NAME}_list_options): Likewise.
* scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
Diffstat (limited to 'include/bfdlink.h')
-rw-r--r-- | include/bfdlink.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/bfdlink.h b/include/bfdlink.h index d68fe113f..4636025b8 100644 --- a/include/bfdlink.h +++ b/include/bfdlink.h @@ -297,6 +297,14 @@ struct bfd_link_info /* TRUE if generating an executable, position independent or not. */ unsigned int executable : 1; + /* TRUE if PT_GNU_STACK segment should be created with PF_R|PF_W|PF_X + flags. */ + unsigned int execstack: 1; + + /* TRUE if PT_GNU_STACK segment should be created with PF_R|PF_W + flags. */ + unsigned int noexecstack: 1; + /* Which symbols to strip. */ enum bfd_link_strip strip; |