diff options
Diffstat (limited to 'binutils/size.c')
-rw-r--r-- | binutils/size.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/binutils/size.c b/binutils/size.c index 02f0972..9875493 100644 --- a/binutils/size.c +++ b/binutils/size.c @@ -341,8 +341,12 @@ display_archive (bfd *file) static void display_file (char *filename) { - bfd *file = bfd_openr (filename, target); + bfd *file; + if (get_file_size (filename) < 1) + return; + + file = bfd_openr (filename, target); if (file == NULL) { bfd_nonfatal (filename); |