From: Alan Modra Date: Mon, 8 May 2000 06:57:39 +0000 (+0000) Subject: * trad-core.c (trad_unix_core_file_p): Return X-Git-Tag: gprof-pre-ansify-2004-05-26~8515 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=63ba0ccdb1f659a64685cdf200f6d29301dac308;p=pf3gnuchains%2Fpf3gnuchains4x.git * trad-core.c (trad_unix_core_file_p): Return bfd_error_wrong_format rather than bfd_error_file_truncated. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index cd6e64548e..7a7f13bd57 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ 2000-05-08 Alan Modra + * 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 diff --git a/bfd/trad-core.c b/bfd/trad-core.c index 633c53d983..aea6366795 100644 --- a/bfd/trad-core.c +++ b/bfd/trad-core.c @@ -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