aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-02-10 09:15:08 +0000
committerJakub Jelinek <jakub@redhat.com>2005-02-10 09:15:08 +0000
commitd457dcf69843196978118f12d749e8aa284202a0 (patch)
treee6d6b604c932bd69f589f55294e7ac5423bec233 /bfd/elflink.c
parent0dffe982d81812ed9d480dcfcdf3fb1f28ae96e2 (diff)
downloadgdb-d457dcf69843196978118f12d749e8aa284202a0.zip
gdb-d457dcf69843196978118f12d749e8aa284202a0.tar.gz
gdb-d457dcf69843196978118f12d749e8aa284202a0.tar.bz2
* bfd-in.h (BFD_LINKER_CREATED): Define.
* bfd-in2.h: Rebuilt. * elflink.c (bfd_elf_size_dynamic_sections): Disregard BFD_LINKER_CREATED bfds when determining input bfds without .note.GNU-stack section. * emultempl/hppaelf.em (hppaelf_create_output_section_statements): Set BFD_LINKER_CREATED on the stubs bfd. * emultempl/ppc64elf.em (ppc_create_output_section_statements): Likewise.
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 b8b9af5..6c65bab 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -4895,7 +4895,7 @@ bfd_elf_size_dynamic_sections (bfd *output_bfd,
{
asection *s;
- if (inputobj->flags & DYNAMIC)
+ if (inputobj->flags & (DYNAMIC | BFD_LINKER_CREATED))
continue;
s = bfd_get_section_by_name (inputobj, ".note.GNU-stack");
if (s)