* hppa.c: Conditionalize on HOST_HPPAHPUX instead of hp9000s800.
authorStu Grossman <grossman@cygnus>
Tue, 22 Dec 1992 01:53:33 +0000 (01:53 +0000)
committerStu Grossman <grossman@cygnus>
Tue, 22 Dec 1992 01:53:33 +0000 (01:53 +0000)
Get rid of HPPA/BSD specific code.  That will go somewhere else
someday.
* (fill_spaces):  Don't spin forever and die if you don't find
$MILLICODE$ subspace.
* (hppa_object_p):  Make sure that we have a real honest-to-cthulu
exec file!
* (hppa_core_file_failing_signal, hppa_core_file_failing_command):
Make these work for HPUX.
* (make_bfd_asection):  New routine to make section creation a
little easier.
* (hppa_core_file_p):  Completely rewrite, leave out bugs.
* libhppa.h:  #include the right system files.  Redefine all of
the structs/macros for hacking core files to use more sensible
HPUX core file structures.
* targets.c (target_vector):  Conditionalize hppa_vec on
HOST_HPPAHPUX, not hp9000s800.
* hosts/hppahpux.h:  #include stdlib.h to get correct decls for
malloc and realloc.  #define HOST_HPPAHPUX.

bfd/hosts/hppahpux.h

index a7bf374e98cd1b27783e82999b101fa92dd2bef4..f58bd7e2345a4d8e23aed76393cb23b2f45c3d87 100644 (file)
@@ -7,6 +7,9 @@
 #include <string.h>
 #include <sys/file.h>
 #include <memory.h>
+#include <stdlib.h>
+
+#define HOST_HPPAHPUX
 
 void free();
 
@@ -31,9 +34,6 @@ rename(from, to)
 }
 #endif
 
-extern PTR   EXFUN(malloc,(unsigned));
-extern PTR   EXFUN(realloc, (PTR, unsigned));
-
 /* EXACT TYPES */
 typedef char int8e_type;
 typedef unsigned char uint8e_type;