From a92c088a0dee89f9aa73c2c96bd033d1f2ced99b Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 11 Jul 2011 18:39:13 +0000 Subject: [PATCH] Also skip BFD_PLUGIN when setting stack_flags. 2011-07-11 H.J. Lu PR ld/12982 * elflink.c (bfd_elf_size_dynamic_sections): Also skip BFD_PLUGIN when setting stack_flags. --- bfd/ChangeLog | 6 ++++++ bfd/elflink.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e20d3db2d0c..f10bef21200 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2011-07-11 H.J. Lu + + PR ld/12982 + * elflink.c (bfd_elf_size_dynamic_sections): Also skip BFD_PLUGIN + when setting stack_flags. + 2011-07-11 Catherine Moore * aout-adobe.c (aout_32_bfd_lookup_section_flags): New definition. diff --git a/bfd/elflink.c b/bfd/elflink.c index e2cb28cc8e2..dc3840e33db 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) -- 2.30.2