Add support for mcore to dlltool.
[deliverable/binutils-gdb.git] / bfd / trad-core.c
index 9d5a745cef7e2e30670d189225e0332371dbc301..21d920b0e8722e36d512d888a2b2e6625ab28449 100644 (file)
@@ -1,5 +1,6 @@
 /* BFD back end for traditional Unix core files (U-area and raw sections)
 /* BFD back end for traditional Unix core files (U-area and raw sections)
-   Copyright 1988, 1989, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
+   Copyright 1988, 89, 91, 92, 93, 94, 95, 96, 1998
+   Free Software Foundation, Inc.
    Written by John Gilmore of Cygnus Support.
 
 This file is part of BFD, the Binary File Descriptor library.
    Written by John Gilmore of Cygnus Support.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -23,8 +24,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "libbfd.h"
 #include "libaout.h"           /* BFD a.out internal data structures */
 
 #include "libbfd.h"
 #include "libaout.h"           /* BFD a.out internal data structures */
 
-#include <stdio.h>
-#include <sys/types.h>
 #include <sys/param.h>
 #include <sys/dir.h>
 #include <signal.h>
 #include <sys/param.h>
 #include <sys/dir.h>
 #include <signal.h>
@@ -55,6 +54,7 @@ char *                trad_unix_core_file_failing_command PARAMS ((bfd *abfd));
 int            trad_unix_core_file_failing_signal PARAMS ((bfd *abfd));
 boolean                trad_unix_core_file_matches_executable_p
                         PARAMS ((bfd *core_bfd, bfd *exec_bfd));
 int            trad_unix_core_file_failing_signal PARAMS ((bfd *abfd));
 boolean                trad_unix_core_file_matches_executable_p
                         PARAMS ((bfd *core_bfd, bfd *exec_bfd));
+static void    swap_abort PARAMS ((void));
 
 /* Handle 4.2-style (and perhaps also sysV-style) core dump file.  */
 
 
 /* Handle 4.2-style (and perhaps also sysV-style) core dump file.  */
 
@@ -257,7 +257,7 @@ trad_unix_core_file_matches_executable_p  (core_bfd, exec_bfd)
 }
 \f
 /* If somebody calls any byte-swapping routines, shoot them.  */
 }
 \f
 /* If somebody calls any byte-swapping routines, shoot them.  */
-void
+static void
 swap_abort()
 {
   abort(); /* This way doesn't require any declaration for ANSI to fuck up */
 swap_abort()
 {
   abort(); /* This way doesn't require any declaration for ANSI to fuck up */
@@ -271,8 +271,8 @@ const bfd_target trad_core_vec =
   {
     "trad-core",
     bfd_target_unknown_flavour,
   {
     "trad-core",
     bfd_target_unknown_flavour,
-    true,                      /* target byte order */
-    true,                      /* target headers byte order */
+    BFD_ENDIAN_UNKNOWN,                /* target byte order */
+    BFD_ENDIAN_UNKNOWN,                /* target headers byte order */
     (HAS_RELOC | EXEC_P |      /* object flags */
      HAS_LINENO | HAS_DEBUG |
      HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
     (HAS_RELOC | EXEC_P |      /* object flags */
      HAS_LINENO | HAS_DEBUG |
      HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
This page took 0.02774 seconds and 4 git commands to generate.