aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2011-07-11 18:39:13 +0000
committerH.J. Lu <hjl.tools@gmail.com>2011-07-11 18:39:13 +0000
commita92c088a0dee89f9aa73c2c96bd033d1f2ced99b (patch)
treef27addb788f8b3b2b711891fd734471c436ff282 /bfd/elflink.c
parent86d318988ca62139acf6175c9a739e9848e14409 (diff)
downloadgdb-a92c088a0dee89f9aa73c2c96bd033d1f2ced99b.zip
gdb-a92c088a0dee89f9aa73c2c96bd033d1f2ced99b.tar.gz
gdb-a92c088a0dee89f9aa73c2c96bd033d1f2ced99b.tar.bz2
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.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index e2cb28c..dc3840e 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -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)