aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/obj-elf.c4
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)