diff options
author | Alan Modra <amodra@bigpond.net.au> | 2008-04-08 05:41:19 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2008-04-08 05:41:19 +0000 |
commit | 52ee017af53b9f7a9b8d78307a56c5ba7e396e3f (patch) | |
tree | a8066fe2aed86c01b7751277c5a26390716c0749 | |
parent | 2da0801e63b3f5850224e22df96222ac60712fd2 (diff) | |
download | gdb-52ee017af53b9f7a9b8d78307a56c5ba7e396e3f.tar.gz |
* elflink.c (bfd_elf_size_dynamic_sections): Ignore GNU-stack note
in EXEC_P bfds.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elflink.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b8afd283e7c..4e5c2622743 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 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) |