Also skip BFD_PLUGIN when setting stack_flags.

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.
This commit is contained in:
H.J. Lu 2011-07-11 18:39:13 +00:00
parent 86d318988c
commit a92c088a0d
2 changed files with 8 additions and 1 deletions

View 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> 2011-07-11 Catherine Moore <clm@codesourcery.com>
* aout-adobe.c (aout_32_bfd_lookup_section_flags): New definition. * aout-adobe.c (aout_32_bfd_lookup_section_flags): New definition.

View file

@ -5525,7 +5525,8 @@ bfd_elf_size_dynamic_sections (bfd *output_bfd,
{ {
asection *s; asection *s;
if (inputobj->flags & (DYNAMIC | EXEC_P | BFD_LINKER_CREATED)) if (inputobj->flags
& (DYNAMIC | EXEC_P | BFD_PLUGIN | BFD_LINKER_CREATED))
continue; continue;
s = bfd_get_section_by_name (inputobj, ".note.GNU-stack"); s = bfd_get_section_by_name (inputobj, ".note.GNU-stack");
if (s) if (s)