]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* bfd-in.h (BFD_LINKER_CREATED): Define.
authorJakub Jelinek <jakub@redhat.com>
Thu, 10 Feb 2005 09:15:08 +0000 (09:15 +0000)
committerJakub Jelinek <jakub@redhat.com>
Thu, 10 Feb 2005 09:15:08 +0000 (09:15 +0000)
* 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.

bfd/ChangeLog
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/elflink.c
ld/ChangeLog
ld/emultempl/hppaelf.em
ld/emultempl/ppc64elf.em

index 889411f52326884fce9c3bbcb6503c7cc33f3577..1cc875fa0e2a1f5ef3e83e60fddf84cb461018d4 100644 (file)
@@ -1,3 +1,11 @@
+2005-02-10  Jakub Jelinek  <jakub@redhat.com>
+
+       * 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.
+
 2005-02-10  Maciej W. Rozycki  <macro@mips.com>
 
        * elf64-mips.c (mips16_gprel_reloc): Update a comment.
index 8695e684fa0d350c1df850e6fc03fe6cf73dc39a..033db48d8200023be2af288a83c50a378c34ebd2 100644 (file)
@@ -1,7 +1,7 @@
 /* Main header file for the bfd library -- portable access to object files.
 
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
-   1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+   1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 
    Contributed by Cygnus Support.
 
@@ -230,6 +230,10 @@ bfd_format;
 
 /* The sections in this BFD specify a memory page.  */
 #define HAS_LOAD_PAGE 0x1000
+
+/* This BFD has been created by the linker and doesn't correspond
+   to any input file.  */
+#define BFD_LINKER_CREATED 0x2000
 \f
 /* Symbols and relocation.  */
 
index da2d8cc2c10a6dabf881d49c105a0897b808938f..8afe498cbf4bb2a2a7309490d487c824c17cb64c 100644 (file)
@@ -8,7 +8,7 @@
 /* Main header file for the bfd library -- portable access to object files.
 
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
-   1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+   1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 
    Contributed by Cygnus Support.
 
@@ -245,6 +245,10 @@ bfd_format;
 
 /* The sections in this BFD specify a memory page.  */
 #define HAS_LOAD_PAGE 0x1000
+
+/* This BFD has been created by the linker and doesn't correspond
+   to any input file.  */
+#define BFD_LINKER_CREATED 0x2000
 \f
 /* Symbols and relocation.  */
 
index b8b9af5e2eef6a018d2749255f6fe39f80b56f12..6c65babafdd2497485f90f59e95f9e77b630cc2d 100644 (file)
@@ -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)
index 82d9b1c80a5bf0ad380e97c0abbb81b0297baedf..3561308cf535bb09c65c021bb7b0904d00e5407b 100644 (file)
@@ -1,3 +1,10 @@
+2005-02-10  Jakub Jelinek  <jakub@redhat.com>
+
+       * 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.
+
 2005-02-08  Mark Mitchell  <mark@codesourcery.com>
 
        * scripttempl/armbpabi.sc (VERSION): Make special section symbols
index 2b03fbe679b180655a43a7845518bbf98a118fc2..b6b9ce6dd6b9e6cac626a3f8fe0b3174ea4084c2 100644 (file)
@@ -88,6 +88,7 @@ hppaelf_create_output_section_statements (void)
       return;
     }
 
+  stub_file->the_bfd->flags |= BFD_LINKER_CREATED;
   ldlang_add_file (stub_file);
 }
 
index 338e090eb77aa6d4c467d63746e0c89e34c7f686..de4f02fcd685302e89473656bdbc90a1789fbccf 100644 (file)
@@ -92,6 +92,7 @@ ppc_create_output_section_statements (void)
       return;
     }
 
+  stub_file->the_bfd->flags |= BFD_LINKER_CREATED;
   ldlang_add_file (stub_file);
   ppc64_elf_init_stub_bfd (stub_file->the_bfd, &link_info);
 }