OSDN Git Service

2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl>
Mon, 3 May 2004 04:08:30 +0000 (04:08 +0000)
committerhjl <hjl>
Mon, 3 May 2004 04:08:30 +0000 (04:08 +0000)
* config/obj-elf.c (obj_elf_change_section): Allow the
".note.GNU-stack" section has SHF_EXECINSTR.

gas/ChangeLog
gas/config/obj-elf.c

index 484ed24..f4a34f2 100644 (file)
@@ -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.
index 7bd62d7..f970110 100644 (file)
@@ -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)