diff options
Diffstat (limited to 'bfd/aout-encap.c')
-rw-r--r-- | bfd/aout-encap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/aout-encap.c b/bfd/aout-encap.c index 0d468f2..dff9f74 100644 --- a/bfd/aout-encap.c +++ b/bfd/aout-encap.c @@ -69,7 +69,8 @@ encap_object_p (abfd) struct external_exec exec_bytes; if (bfd_read ((PTR) &exec_bytes, 1, EXEC_BYTES_SIZE, abfd) != EXEC_BYTES_SIZE) { - bfd_set_error (bfd_error_wrong_format); + if (bfd_get_error () != bfd_error_system_call) + bfd_set_error (bfd_error_wrong_format); return 0; } NAME(aout,swap_exec_header_in)(abfd, &exec_bytes, &exec); |