diff options
author | Alan Modra <amodra@gmail.com> | 2000-03-11 23:09:42 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-03-11 23:09:42 +0000 |
commit | 911c6daef6aa101c4fd240e342074c2efcf1d5a7 (patch) | |
tree | 0206c18b56d1e5e1839420f9ff733a35da5fa23c /bfd/ieee.c | |
parent | 7893e6a2a71b67caf5836923bd15afe4fd7d9cb3 (diff) | |
download | binutils-gdb-911c6daef6aa101c4fd240e342074c2efcf1d5a7.tar.gz |
Return bfd_error_wrong_format on a format mismatch.
Diffstat (limited to 'bfd/ieee.c')
-rw-r--r-- | bfd/ieee.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/ieee.c b/bfd/ieee.c index 989d7243cba..82b3bac8367 100644 --- a/bfd/ieee.c +++ b/bfd/ieee.c @@ -1336,7 +1336,7 @@ ieee_archive_p (abfd) if (this_byte (&(ieee->h)) != Module_Beginning) { abfd->tdata.ieee_ar_data = save; - goto error_return; + goto got_wrong_format_error; } next_byte (&(ieee->h)); @@ -1345,7 +1345,7 @@ ieee_archive_p (abfd) { bfd_release (abfd, ieee); abfd->tdata.ieee_ar_data = save; - goto error_return; + goto got_wrong_format_error; } /* Throw away the filename */ read_id (&(ieee->h)); @@ -1448,6 +1448,8 @@ ieee_archive_p (abfd) return abfd->xvec; + got_wrong_format_error: + bfd_set_error (bfd_error_wrong_format); error_return: if (elts != NULL) free (elts); |