dynamic = true;
}
if (storage < 0)
- bfd_fatal (bfd_get_filename (abfd));
+ {
+ bfd_nonfatal (bfd_get_filename (abfd));
+ return;
+ }
syms = (asymbol **) xmalloc (storage);
if (dynamic)
else
symcount = bfd_canonicalize_symtab (abfd, syms);
if (symcount < 0)
- bfd_fatal (bfd_get_filename (abfd));
+ bfd_nonfatal (bfd_get_filename (abfd));
/* If there are no symbols left after canonicalization and
we have not tried the dynamic symbols then give them a go. */
abfd->flags |= BFD_DECOMPRESS;
if (bfd_check_format (abfd, bfd_archive))
- fatal (_("%s: cannot get addresses from archive"), file_name);
+ {
+ non_fatal (_("%s: cannot get addresses from archive"), file_name);
+ return 1;
+ }
if (! bfd_check_format_matches (abfd, bfd_object, &matching))
{
bfd_nonfatal (bfd_get_filename (abfd));
if (bfd_get_error () == bfd_error_file_ambiguously_recognized)
list_matching_formats (matching);
- xexit (1);
+ return 1;
}
if (section_name != NULL)
{
section = bfd_get_section_by_name (abfd, section_name);
if (section == NULL)
- fatal (_("%s: cannot find section %s"), file_name, section_name);
+ {
+ non_fatal (_("%s: cannot find section %s"), file_name, section_name);
+ return 1;
+ }
}
else
section = NULL;