summaryrefslogtreecommitdiff
path: root/bfd/ieee.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2000-03-11 23:09:42 +0000
committerAlan Modra <amodra@bigpond.net.au>2000-03-11 23:09:42 +0000
commit275a36ca4f1de66be747ad4ec8f63b33bfbeb647 (patch)
tree16bb987f35040162b1c2db4c4be1c756a98801ea /bfd/ieee.c
parent3e69d516ea773e3f2ae86f217f904f97e91987f2 (diff)
downloadgdb-275a36ca4f1de66be747ad4ec8f63b33bfbeb647.tar.gz
Return bfd_error_wrong_format on a format mismatch.
Diffstat (limited to 'bfd/ieee.c')
-rw-r--r--bfd/ieee.c6
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);