* 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.
This commit is contained in:
parent
ff5ac77bf5
commit
8ff4c1f3c9
4 changed files with 13 additions and 5 deletions
|
@ -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>
|
2013-03-27 Georg-Johann Lay <gjl@gcc.gnu.org>
|
||||||
|
|
||||||
PR ld/13812
|
PR ld/13812
|
||||||
|
|
|
@ -447,7 +447,7 @@ fragment <<EOF
|
||||||
|
|
||||||
/* Add this file into the symbol table. */
|
/* Add this file into the symbol table. */
|
||||||
if (! bfd_link_add_symbols (abfd, &link_info))
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -429,7 +429,7 @@ gld${EMULATION_NAME}_after_open (void)
|
||||||
{
|
{
|
||||||
/* We've found the needed dynamic object. */
|
/* We've found the needed dynamic object. */
|
||||||
if (! bfd_link_add_symbols (abfd, &link_info))
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -576,7 +576,7 @@ gld${EMULATION_NAME}_try_needed (const char *dir, const char *name)
|
||||||
|
|
||||||
/* Add this file into the symbol table. */
|
/* Add this file into the symbol table. */
|
||||||
if (! bfd_link_add_symbols (abfd, &link_info))
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2781,7 +2781,7 @@ load_symbols (lang_input_statement_type *entry,
|
||||||
substitute BFD for us. */
|
substitute BFD for us. */
|
||||||
if (!bfd_link_add_symbols (subsbfd, &link_info))
|
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;
|
loaded = FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2795,7 +2795,7 @@ load_symbols (lang_input_statement_type *entry,
|
||||||
if (bfd_link_add_symbols (entry->the_bfd, &link_info))
|
if (bfd_link_add_symbols (entry->the_bfd, &link_info))
|
||||||
entry->flags.loaded = TRUE;
|
entry->flags.loaded = TRUE;
|
||||||
else
|
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;
|
return entry->flags.loaded;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue