diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2004-05-03 04:08:32 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2004-05-03 04:08:32 +0000 |
commit | b9f18452d42e7998f9c0bd59ec4018f639620bbd (patch) | |
tree | 3f234a9f2189a161d0026b6ec20bf8423d2ae88a /gas | |
parent | c848556f0782e5046d8ced3570d7181c6695b096 (diff) | |
download | gdb-b9f18452d42e7998f9c0bd59ec4018f639620bbd.zip gdb-b9f18452d42e7998f9c0bd59ec4018f639620bbd.tar.gz gdb-b9f18452d42e7998f9c0bd59ec4018f639620bbd.tar.bz2 |
2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c (obj_elf_change_section): Allow the
".note.GNU-stack" section has SHF_EXECINSTR.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/obj-elf.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 484ed24..f4a34f2 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,10 @@ 2004-05-02 H.J. Lu <hongjiu.lu@intel.com> + * config/obj-elf.c (obj_elf_change_section): Allow the + ".note.GNU-stack" section has SHF_EXECINSTR. + +2004-05-02 H.J. Lu <hongjiu.lu@intel.com> + * config/obj-elf.c (get_section): Return bfd_boolean. (obj_elf_change_section): Call bfd_get_section_by_name_if instead of bfd_map_over_sections. diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 7bd62d7..f970110 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -600,6 +600,10 @@ obj_elf_change_section (const char *name, || strcmp (name, ".strtab") == 0 || strcmp (name, ".symtab") == 0)) override = TRUE; + /* .note.GNU-stack can have SHF_EXECINSTR. */ + else if (attr == SHF_EXECINSTR + && strcmp (name, ".note.GNU-stack") == 0) + override = TRUE; else { if (group_name == NULL) |