aboutsummaryrefslogtreecommitdiff
path: root/bfd/aout-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/aout-target.h')
-rw-r--r--bfd/aout-target.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/aout-target.h b/bfd/aout-target.h
index 6c2ace9..8d2f616 100644
--- a/bfd/aout-target.h
+++ b/bfd/aout-target.h
@@ -89,7 +89,8 @@ MY(object_p) (abfd)
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;
}