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/config/obj-elf.c | |
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/config/obj-elf.c')
-rw-r--r-- | gas/config/obj-elf.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |