Also skip BFD_PLUGIN when setting stack_flags.
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 11 Jul 2011 18:39:13 +0000 (18:39 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 11 Jul 2011 18:39:13 +0000 (18:39 +0000)
2011-07-11  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12982
* elflink.c (bfd_elf_size_dynamic_sections): Also skip BFD_PLUGIN
when setting stack_flags.

bfd/ChangeLog
bfd/elflink.c

index e20d3db2d0c53d77eb79a58a1a2470cc02ca50ec..f10bef21200a3c08472268696758cc37a2b8c3b1 100644 (file)
@@ -1,3 +1,9 @@
+2011-07-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/12982
+       * elflink.c (bfd_elf_size_dynamic_sections): Also skip BFD_PLUGIN
+       when setting stack_flags.
+
 2011-07-11  Catherine Moore  <clm@codesourcery.com>
 
        * aout-adobe.c (aout_32_bfd_lookup_section_flags): New definition.
index e2cb28cc8e23f8acf0dbc608455f018dcd641479..dc3840e33dba1ea5adcd6393c7b64c14f9892ea9 100644 (file)
@@ -5525,7 +5525,8 @@ bfd_elf_size_dynamic_sections (bfd *output_bfd,
        {
          asection *s;
 
-         if (inputobj->flags & (DYNAMIC | EXEC_P | BFD_LINKER_CREATED))
+         if (inputobj->flags
+             & (DYNAMIC | EXEC_P | BFD_PLUGIN | BFD_LINKER_CREATED))
            continue;
          s = bfd_get_section_by_name (inputobj, ".note.GNU-stack");
          if (s)