aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-04-04 14:38:47 +0000
committerAlan Modra <amodra@gmail.com>2013-04-04 14:38:47 +0000
commit8ff4c1f3c9b64444db91fa0630f150cf964d2d81 (patch)
tree79c838ba4fde29c765612f2a59a4ab4a84465cfc /ld
parentff5ac77bf52737eb247737fcf0f213eaf148cbf8 (diff)
downloadgdb-8ff4c1f3c9b64444db91fa0630f150cf964d2d81.zip
gdb-8ff4c1f3c9b64444db91fa0630f150cf964d2d81.tar.gz
gdb-8ff4c1f3c9b64444db91fa0630f150cf964d2d81.tar.bz2
* 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.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog8
-rw-r--r--ld/emultempl/elf32.em2
-rw-r--r--ld/emultempl/sunos.em4
-rw-r--r--ld/ldlang.c4
4 files changed, 13 insertions, 5 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index bbb7249..a61c9da 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 32662e5..ea7bad0 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -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;
}
diff --git a/ld/emultempl/sunos.em b/ld/emultempl/sunos.em
index d7cd3e8..af11027 100644
--- a/ld/emultempl/sunos.em
+++ b/ld/emultempl/sunos.em
@@ -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;
}
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 08aa32a..645c26c 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -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;
}