aboutsummaryrefslogtreecommitdiff
path: root/bfd
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
parenta036edd8bdd243a4cafc34d91333853cd1c47111 (diff)
downloadgdb-a94b9d2d3a081b0dad966ee7618ffba469b54f9f.zip
gdb-a94b9d2d3a081b0dad966ee7618ffba469b54f9f.tar.gz
gdb-a94b9d2d3a081b0dad966ee7618ffba469b54f9f.tar.bz2
* elflink.c (bfd_elf_size_dynamic_sections): Ignore GNU-stack note
in EXEC_P bfds.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elflink.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b8afd28..4e5c262 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-08 Kees Cook <kees@canonical.com>
+
+ * elflink.c (bfd_elf_size_dynamic_sections): Ignore GNU-stack note
+ in EXEC_P bfds.
+
2008-04-08 Alan Modra <amodra@bigpond.net.au>
* elf32-spu.c: Include libiberty.h.
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 65cb852..28282f6 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)