2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 3 May 2004 04:08:32 +0000 (04:08 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 3 May 2004 04:08:32 +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 484ed2477b1d2fdae8b445fda18dd4882ae14bbe..f4a34f2f8409d5f30600fe8e0399af730d2131ef 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 7bd62d769d4e60df9884fac9cfd7baf6ef866153..f970110f9579f524e14ed7aab7424178ec1fe2ae 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)
This page took 0.044494 seconds and 4 git commands to generate.