* opncls.c (bfd_openr): Remove redundant bfd_set_error.
(bfd_fdopenr): Likewise. (bfd_openstreamr): Likewise. (bfd_openw): Likewise.
This commit is contained in:
parent
341ca62211
commit
767e34d13c
@ -1,5 +1,10 @@
|
|||||||
2002-06-17 Alan Modra <amodra@bigpond.net.au>
|
2002-06-17 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* opncls.c (bfd_openr): Remove redundant bfd_set_error.
|
||||||
|
(bfd_fdopenr): Likewise.
|
||||||
|
(bfd_openstreamr): Likewise.
|
||||||
|
(bfd_openw): Likewise.
|
||||||
|
|
||||||
* targets.c: Sort target vecs.
|
* targets.c: Sort target vecs.
|
||||||
(_bfd_target_vector): Add aix5coff64_vec, bfd_elf32_sh64_vec,
|
(_bfd_target_vector): Add aix5coff64_vec, bfd_elf32_sh64_vec,
|
||||||
bfd_elf32_sh64l_vec, bfd_elf32_sh64lnbsd_vec,
|
bfd_elf32_sh64l_vec, bfd_elf32_sh64lnbsd_vec,
|
||||||
|
@ -152,7 +152,6 @@ bfd_openr (filename, target)
|
|||||||
target_vec = bfd_find_target (target, nbfd);
|
target_vec = bfd_find_target (target, nbfd);
|
||||||
if (target_vec == NULL)
|
if (target_vec == NULL)
|
||||||
{
|
{
|
||||||
bfd_set_error (bfd_error_invalid_target);
|
|
||||||
_bfd_delete_bfd (nbfd);
|
_bfd_delete_bfd (nbfd);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -220,7 +219,8 @@ bfd_fdopenr (filename, target, fd)
|
|||||||
#else
|
#else
|
||||||
fdflags = fcntl (fd, F_GETFL, NULL);
|
fdflags = fcntl (fd, F_GETFL, NULL);
|
||||||
#endif
|
#endif
|
||||||
if (fdflags == -1) return NULL;
|
if (fdflags == -1)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
nbfd = _bfd_new_bfd ();
|
nbfd = _bfd_new_bfd ();
|
||||||
if (nbfd == NULL)
|
if (nbfd == NULL)
|
||||||
@ -229,7 +229,6 @@ bfd_fdopenr (filename, target, fd)
|
|||||||
target_vec = bfd_find_target (target, nbfd);
|
target_vec = bfd_find_target (target, nbfd);
|
||||||
if (target_vec == NULL)
|
if (target_vec == NULL)
|
||||||
{
|
{
|
||||||
bfd_set_error (bfd_error_invalid_target);
|
|
||||||
_bfd_delete_bfd (nbfd);
|
_bfd_delete_bfd (nbfd);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -308,7 +307,6 @@ bfd_openstreamr (filename, target, streamarg)
|
|||||||
target_vec = bfd_find_target (target, nbfd);
|
target_vec = bfd_find_target (target, nbfd);
|
||||||
if (target_vec == NULL)
|
if (target_vec == NULL)
|
||||||
{
|
{
|
||||||
bfd_set_error (bfd_error_invalid_target);
|
|
||||||
_bfd_delete_bfd (nbfd);
|
_bfd_delete_bfd (nbfd);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -354,8 +352,6 @@ bfd_openw (filename, target)
|
|||||||
bfd *nbfd;
|
bfd *nbfd;
|
||||||
const bfd_target *target_vec;
|
const bfd_target *target_vec;
|
||||||
|
|
||||||
bfd_set_error (bfd_error_system_call);
|
|
||||||
|
|
||||||
/* nbfd has to point to head of malloc'ed block so that bfd_close may
|
/* nbfd has to point to head of malloc'ed block so that bfd_close may
|
||||||
reclaim it correctly. */
|
reclaim it correctly. */
|
||||||
nbfd = _bfd_new_bfd ();
|
nbfd = _bfd_new_bfd ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user