summaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-04-08 05:41:19 +0000
committerAlan Modra <amodra@gmail.com>2008-04-08 05:41:19 +0000
commita94b9d2d3a081b0dad966ee7618ffba469b54f9f (patch)
treeb32a089e8c7e57c82cb3fb55ee277092c1cfc892 /bfd/elflink.c
parenta036edd8bdd243a4cafc34d91333853cd1c47111 (diff)
downloadbinutils-gdb-a94b9d2d3a081b0dad966ee7618ffba469b54f9f.tar.gz
* elflink.c (bfd_elf_size_dynamic_sections): Ignore GNU-stack note
in EXEC_P bfds.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 65cb85253ee..28282f6c97f 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -5403,7 +5403,7 @@ bfd_elf_size_dynamic_sections (bfd *output_bfd,
{
asection *s;
- if (inputobj->flags & (DYNAMIC | BFD_LINKER_CREATED))
+ if (inputobj->flags & (DYNAMIC | EXEC_P | BFD_LINKER_CREATED))
continue;
s = bfd_get_section_by_name (inputobj, ".note.GNU-stack");
if (s)