* trad-core.c (trad_unix_core_file_p): Return
authorAlan Modra <amodra@gmail.com>
Mon, 8 May 2000 06:57:39 +0000 (06:57 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 8 May 2000 06:57:39 +0000 (06:57 +0000)
bfd_error_wrong_format rather than bfd_error_file_truncated.

bfd/ChangeLog
bfd/trad-core.c

index cd6e64548e47345acfc34c93329f1e203987be17..7a7f13bd576f03119ffbc3e4cc793241b2530092 100644 (file)
@@ -1,5 +1,8 @@
 2000-05-08  Alan Modra  <alan@linuxcare.com.au>
 
+       * trad-core.c (trad_unix_core_file_p): Return
+       bfd_error_wrong_format rather than bfd_error_file_truncated.
+
        * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
        add_data_entry.  DataDirectory virtual address is relative.
        (pe_print_idata): Account for relative DataDirectory virtual
index 633c53d98384a24920e870f5e721f7f55a18173b..aea6366795b4037c6fe8edb94ddd5ef9dd473607 100644 (file)
@@ -112,7 +112,7 @@ trad_unix_core_file_p (abfd)
                                 + u.u_ssize))
        > (unsigned long) statbuf.st_size)
       {
-       bfd_set_error (bfd_error_file_truncated);
+       bfd_set_error (bfd_error_wrong_format);
        return 0;
       }
 #ifndef TRAD_CORE_ALLOW_ANY_EXTRA_SIZE