* ldlang.c (load_symbols): Report "error adding symbols" on
authorAlan Modra <amodra@gmail.com>
Thu, 4 Apr 2013 14:38:47 +0000 (14:38 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 4 Apr 2013 14:38:47 +0000 (14:38 +0000)
bfd_link_add_symbols failure.
* emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
* emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Likewise.
(gld${EMULATION_NAME}_try_needed): Likewise.

ld/ChangeLog
ld/emultempl/elf32.em
ld/emultempl/sunos.em
ld/ldlang.c

index bbb7249809befa846200105e776933838febcec3..a61c9da6e9d24c357ed14ddba9ff7b8f388a2086 100644 (file)
@@ -1,3 +1,11 @@
+2013-04-04  Alan Modra  <amodra@gmail.com>
+
+       * ldlang.c (load_symbols): Report "error adding symbols" on
+       bfd_link_add_symbols failure.
+       * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
+       * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Likewise.
+       (gld${EMULATION_NAME}_try_needed): Likewise.
+
 2013-03-27  Georg-Johann Lay  <gjl@gcc.gnu.org>
 
        PR ld/13812
index 32662e5fb6be1ae0a4dda98d2025767645f72ead..ea7bad08e7ef189bfb2a66d9b7d65ebe69bce4f6 100644 (file)
@@ -447,7 +447,7 @@ fragment <<EOF
 
   /* Add this file into the symbol table.  */
   if (! bfd_link_add_symbols (abfd, &link_info))
-    einfo ("%F%B: could not read symbols: %E\n", abfd);
+    einfo ("%F%B: error adding symbols: %E\n", abfd);
 
   return TRUE;
 }
index d7cd3e8352be383b391520ea6b145239354dfa38..af11027a73a3796dd506e33679b88ea00336f257 100644 (file)
@@ -429,7 +429,7 @@ gld${EMULATION_NAME}_after_open (void)
            {
              /* We've found the needed dynamic object.  */
              if (! bfd_link_add_symbols (abfd, &link_info))
-               einfo ("%F%B: could not read symbols: %E\n", abfd);
+               einfo ("%F%B: error adding symbols: %E\n", abfd);
            }
          else
            {
@@ -576,7 +576,7 @@ gld${EMULATION_NAME}_try_needed (const char *dir, const char *name)
 
   /* Add this file into the symbol table.  */
   if (! bfd_link_add_symbols (abfd, &link_info))
-    einfo ("%F%B: could not read symbols: %E\n", abfd);
+    einfo ("%F%B: error adding symbols: %E\n", abfd);
 
   return TRUE;
 }
index 08aa32aa0c464797027521a9f69d33b85fc939f1..645c26c1511d493dc13007d0d9b532514c0adf72 100644 (file)
@@ -2781,7 +2781,7 @@ load_symbols (lang_input_statement_type *entry,
                 substitute BFD for us.  */
              if (!bfd_link_add_symbols (subsbfd, &link_info))
                {
-                 einfo (_("%F%B: could not read symbols: %E\n"), member);
+                 einfo (_("%F%B: error adding symbols: %E\n"), member);
                  loaded = FALSE;
                }
            }
@@ -2795,7 +2795,7 @@ load_symbols (lang_input_statement_type *entry,
   if (bfd_link_add_symbols (entry->the_bfd, &link_info))
     entry->flags.loaded = TRUE;
   else
-    einfo (_("%F%B: could not read symbols: %E\n"), entry->the_bfd);
+    einfo (_("%F%B: error adding symbols: %E\n"), entry->the_bfd);
 
   return entry->flags.loaded;
 }