*** empty log message ***
authorSteve Chamberlain <steve@cygnus>
Mon, 15 Jul 1991 23:41:06 +0000 (23:41 +0000)
committerSteve Chamberlain <steve@cygnus>
Mon, 15 Jul 1991 23:41:06 +0000 (23:41 +0000)
bfd/.Sanitize
binutils/.Sanitize
include/.Sanitize
include/a29k-opcode.h
include/bcs88kcoff.h
include/bfd.h
include/coff-m88k.h
include/internalcoff.h
include/sysdep.h
ld/config/.Sanitize

index 89a5e3d..ed17964 100644 (file)
@@ -66,6 +66,7 @@ liboasys.h
 m68kcoff.c
 m88k-bcs.c
 newsos3.c
+amdcoff.c
 oasys.c
 opncls.c
 reloc.c
@@ -84,7 +85,10 @@ echo Done in `pwd`.
 #
 #
 # $Log$
-# Revision 1.4  1991/07/04 16:52:54  steve
+# Revision 1.5  1991/07/15 23:32:40  steve
+# *** empty log message ***
+#
+# Revision 1.4  1991/07/04  16:52:54  steve
 # Now full of documentation. Yum Yum.
 #
 # Revision 1.3  1991/05/31  11:22:12  gnu
index f362d8a..3006fe6 100644 (file)
@@ -40,6 +40,7 @@ copy.c
 cplus-dem.c
 filemode.c
 gmalloc.c
+am29k-pinsn.c
 i960-pinsn.c
 m68k-pinsn.c
 nm.c
@@ -57,7 +58,10 @@ echo Done in `pwd`.
 #
 #
 # $Log$
-# Revision 1.1  1991/05/23 21:49:14  rich
+# Revision 1.2  1991/07/15 23:38:04  steve
+# *** empty log message ***
+#
+# Revision 1.1  1991/05/23  21:49:14  rich
 # Initial revision
 #
 #
index 91dd531..3ddc06f 100644 (file)
@@ -33,6 +33,7 @@ a.out.host.h
 a.out.sun4.h
 a.out.vax.h
 a29k-opcode.h
+amdcoff.h
 ansidecl.h
 aout64.h
 ar.h
@@ -91,7 +92,10 @@ echo Done in `pwd`.
 #
 #
 # $Log$
-# Revision 1.3  1991/06/14 22:14:07  steve
+# Revision 1.4  1991/07/15 23:34:14  steve
+# *** empty log message ***
+#
+# Revision 1.3  1991/06/14  22:14:07  steve
 # *** empty log message ***
 #
 # Revision 1.2  1991/05/31  11:26:52  gnu
index 59aac0e..b2972ff 100755 (executable)
@@ -63,7 +63,7 @@ struct a29k_opcode {
   char *args;
 };
 
-static const struct a29k_opcode a29k_opcodes[] =
+static CONST struct a29k_opcode a29k_opcodes[] =
 {
 
 { "add", 0x14000000, "c,a,b" },
@@ -279,11 +279,14 @@ static const struct a29k_opcode a29k_opcodes[] =
                           if we've run off the end of the table.  */
 };
 
-const unsigned int num_opcodes = (((sizeof a29k_opcodes) / (sizeof a29k_opcodes[0])) - 1);
+CONST unsigned int num_opcodes = (((sizeof a29k_opcodes) / (sizeof a29k_opcodes[0])) - 1);
 
 /*
  * $Log$
- * Revision 1.1  1991/05/19 00:19:33  rich
+ * Revision 1.2  1991/07/15 23:34:04  steve
+ * *** empty log message ***
+ *
+ * Revision 1.1  1991/05/19  00:19:33  rich
  * Initial revision
  *
  * Revision 1.1.1.1  1991/04/04  18:15:23  rich
index ca7ef83..8710f43 100755 (executable)
@@ -1,5 +1,9 @@
 /*** coff information for 88k bcs */
 
+#ifndef M88
+#define M88
+#endif
+
 /********************** FILE HEADER **********************/
 
 struct filehdr {
index 425e9ff..3f44d55 100644 (file)
@@ -78,8 +78,8 @@ typedef unsigned long bfd_word;
 typedef unsigned long bfd_size;
 typedef unsigned long symvalue;
 typedef unsigned long bfd_size_type;
-#define printf_vma(x)   printf(    "%08x", x)
-#define fprintf_vma(s,x) fprintf(s, "%08x", x)
+#define printf_vma(x)   printf(    "%08lx", x)
+#define fprintf_vma(s,x) fprintf(s, "%08lx", x)
 #endif
 
 typedef unsigned int flagword; /* 32 bits of flags */
@@ -914,7 +914,7 @@ struct _bfd
     */
   char *iostream;
 
-    /* Is the file being cached @xref{Caching}.
+    /* Is the file being cached @xref{File Caching}.
     */
   boolean cacheable;
 
@@ -1050,18 +1050,6 @@ before); else determine modify time, cache it, and return it.
 #define bfd_stat_arch_elt(abfd, stat) \
         BFD_SEND (abfd, _bfd_stat_arch_elt,(abfd, stat))
 
-    /* Special entry points for gdb to swap in coff symbol table parts */
-
-#define        bfd_coff_swap_aux_in(abfd, ext, type, class, in) \
-       BFD_SEND (abfd, _bfd_coff_swap_aux_in, (abfd, ext, type, class, in))
-
-#define        bfd_coff_swap_sym_in(abfd, ext, in) \
-       BFD_SEND (abfd, _bfd_coff_swap_sym_in, (abfd, ext, in))
-
-#define        bfd_coff_swap_lineno_in(abfd, ext, in) \
-       BFD_SEND (abfd, _bfd_coff_swap_lineno_in, (abfd, ext, in))
-
-
 /* What this does
 */
 PROTO(symindex, bfd_get_next_mapent, (bfd *, symindex, carsym **));
@@ -1078,6 +1066,22 @@ NULL is returned when there are no more.
 */
 PROTO(bfd*, bfd_openr_next_archived_file,
                (bfd *archive, bfd *previous));
+/* Returns a read-only string explaining what program was running when
+it failed and produced the core file being read
+
+*/
+PROTO(CONST char *, bfd_core_file_failing_command, (bfd *));
+/* Returns the signal number which caused the core dump which generated
+the file the bfd is attatched to.
+
+*/
+PROTO(int, bfd_core_file_failing_signal, (bfd *));
+/* Returns @code{true} if the core file attatched to @var{core_bfd} was
+generated by a run of the executable file attatched to @var{exec_bfd},
+or else @code{false}.
+*/
+PROTO(boolean, core_file_matches_executable_p,
+    (bfd *core_bfd, bfd *exec_bfd));
 /* The relocation routine returns as a status an enumerated type:
 
 */
@@ -1138,7 +1142,7 @@ typedef struct reloc_cache_entry
 
     /* Pointer to how to perform the required relocation
     */
-  struct reloc_howto_struct *howto;
+  CONST struct reloc_howto_struct *howto;
 } arelent;
 
 /* The @code{reloc_howto_type} is a structure which contains all the
@@ -1263,6 +1267,7 @@ PROTO(bfd_reloc_status_enum_type,
                         asection *input_section,
                         bfd *output_bfd));
 /* @node bfd_target
+@subsection bfd_target
 This structure contains everything that BFD knows about a target.
 It includes things like its byte order, name, what routines to call
 to do various operations, etc.   
@@ -1519,13 +1524,5 @@ returns a pointer to a const string "invalid", "object", "archive",
 "core" or "unknown" depending upon the value of the enumeration.
 */
 PROTO(CONST char *, bfd_format_string, (bfd_format));
-
-/* Core file stuff */
-
-PROTO(CONST char *, bfd_core_file_failing_command, (bfd *));
-PROTO(int, bfd_core_file_failing_signal, (bfd *));
-PROTO(boolean, core_file_matches_executable_p,
-    (bfd *core_bfd, bfd *exec_bfd));
-
 #endif
 
index baf6587..40b98ff 100755 (executable)
@@ -203,20 +203,20 @@ union external_auxent {
 
 };
 
-#define GET_FCN_LNNOPTR(abfd, ext) bfd_h_get_32(abfd,ext->x_sym.x_fcn.x_lnnoptr)
-#define GET_FCN_ENDNDX(abfd, ext) bfd_h_get_32(abfd, ext->x_sym.x_fcn.x_endndx)
-#define PUT_FCN_LNNOPTR(abfd, in, ext)  bfd_h_put_32(abfd,  in, ext->x_sym.x_fcn.x_lnnoptr)
-#define PUT_FCN_ENDNDX(abfd, in, ext) bfd_h_put_32(abfd, in,   ext->x_sym.x_fcn.x_endndx)
-#define GET_LNSZ_SIZE(abfd, ext) bfd_h_get_32(abfd, ext->x_sym.x_misc.x_lnsz.x_size)
-#define GET_LNSZ_LNNO(abfd, ext) bfd_h_get_32(abfd, ext->x_sym.x_misc.x_lnsz.x_lnno)
-#define PUT_LNSZ_LNNO(abfd, in, ext) bfd_h_put_32(abfd, in, ext->x_sym.x_misc.x_lnsz.x_lnno)
-#define PUT_LNSZ_SIZE(abfd, in, ext) bfd_h_put_32(abfd, in, ext->x_sym.x_misc.x_lnsz.x_size)
-#define GET_SCN_SCNLEN(abfd, ext) bfd_h_get_32(abfd, ext->x_scn.x_scnlen)
-#define GET_SCN_NRELOC(abfd, ext) bfd_h_get_32(abfd, ext->x_scn.x_nreloc)
-#define GET_SCN_NLINNO(abfd, ext)  bfd_h_get_32(abfd, ext->x_scn.x_nlinno)
-#define PUT_SCN_SCNLEN(abfd,in, ext) bfd_h_put_32(abfd, in, ext->x_scn.x_scnlen)
-#define PUT_SCN_NRELOC(abfd,in, ext) bfd_h_put_32(abfd, in,ext->x_scn.x_nreloc)
-#define PUT_SCN_NLINNO(abfd,in, ext)  bfd_h_put_32(abfd,in, ext->x_scn.x_nlinno)
+#define GET_FCN_LNNOPTR(abfd, ext) bfd_h_get_32(abfd, (bfd_byte *)ext->x_sym.x_fcn.x_lnnoptr)
+#define GET_FCN_ENDNDX(abfd, ext) bfd_h_get_32(abfd, (bfd_byte *) ext->x_sym.x_fcn.x_endndx)
+#define PUT_FCN_LNNOPTR(abfd, in, ext)  bfd_h_put_32(abfd,  in, (bfd_byte *) ext->x_sym.x_fcn.x_lnnoptr)
+#define PUT_FCN_ENDNDX(abfd, in, ext) bfd_h_put_32(abfd, in, (bfd_byte *)   ext->x_sym.x_fcn.x_endndx)
+#define GET_LNSZ_SIZE(abfd, ext) bfd_h_get_32(abfd, (bfd_byte *) ext->x_sym.x_misc.x_lnsz.x_size)
+#define GET_LNSZ_LNNO(abfd, ext) bfd_h_get_32(abfd, (bfd_byte *) ext->x_sym.x_misc.x_lnsz.x_lnno)
+#define PUT_LNSZ_LNNO(abfd, in, ext) bfd_h_put_32(abfd, in, (bfd_byte *) ext->x_sym.x_misc.x_lnsz.x_lnno)
+#define PUT_LNSZ_SIZE(abfd, in, ext) bfd_h_put_32(abfd, in, (bfd_byte *) ext->x_sym.x_misc.x_lnsz.x_size)
+#define GET_SCN_SCNLEN(abfd, ext) bfd_h_get_32(abfd, (bfd_byte *) ext->x_scn.x_scnlen)
+#define GET_SCN_NRELOC(abfd, ext) bfd_h_get_32(abfd, (bfd_byte *) ext->x_scn.x_nreloc)
+#define GET_SCN_NLINNO(abfd, ext)  bfd_h_get_32(abfd, (bfd_byte *) ext->x_scn.x_nlinno)
+#define PUT_SCN_SCNLEN(abfd,in, ext) bfd_h_put_32(abfd, in, (bfd_byte *) ext->x_scn.x_scnlen)
+#define PUT_SCN_NRELOC(abfd,in, ext) bfd_h_put_32(abfd, in, (bfd_byte *)ext->x_scn.x_nreloc)
+#define PUT_SCN_NLINNO(abfd,in, ext)  bfd_h_put_32(abfd,in, (bfd_byte *) ext->x_scn.x_nlinno)
 
 #define        SYMENT  struct external_syment
 #define        SYMESZ  20
index f0592af..cdce490 100755 (executable)
@@ -91,8 +91,13 @@ struct internal_scnhdr {
        long            s_scnptr;       /* file ptr to raw data for section */
        long            s_relptr;       /* file ptr to relocation       */
        long            s_lnnoptr;      /* file ptr to line numbers     */
+#ifdef M88
+       unsigned long   s_nreloc;
+       unsigned long   s_nlnno;
+#else
        unsigned short  s_nreloc;       /* number of relocation entries */
        unsigned short  s_nlnno;        /* number of line number entries*/
+#endif
        long            s_flags;        /* flags                        */
 #ifdef I960
        long            s_align;        
@@ -143,7 +148,11 @@ struct internal_lineno {
                long l_symndx;  /* function name symbol index, iff l_lnno == 0*/
                long l_paddr;   /* (physical) address of line number    */
        } l_addr;
+#ifdef M88
+       unsigned long   l_lnno; /* line number          */
+#else
        unsigned short  l_lnno; /* line number          */
+#endif
 };
 
 /********************** SYMBOLS **********************/
@@ -160,6 +169,9 @@ struct internal_syment {
        short           n_scnum;        /* section number               */
        unsigned short  n_flags;        /* copy of flags from filhdr    */
        unsigned short  n_type;         /* type and derived type        */
+#if __STDC__
+       signed
+#endif
        char            n_sclass;       /* storage class                */
        char            n_numaux;       /* number of aux. entries       */
 };
index e69da67..fc17f7f 100755 (executable)
@@ -46,6 +46,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define DOS_SYS 13
 #define        VAX_BSD_SYS 14
 #define        TAHOE_BSD_SYS 15
+#define RTBSD_SYS 16  /* IBM RT/PC running bsd Unix */
 
 #include <ansidecl.h>
 
@@ -122,4 +123,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <sys/h-tahoebsd.h>
 #endif
 
+#if HOST_SYS == RTBSD_SYS      
+#include <sys/h-rtbsd.h>
+#endif
+
 #endif 
index 3ae5477..7629f3c 100644 (file)
@@ -30,14 +30,14 @@ fi
 # with rm -rf.
 
 Things-to-keep:
-
+hmake-rtbsd
 hmake-dgux
 hmake-sun3
 hmake-sun4
 hmake-dec3100
 tmake-sun4
 tmake-m88k-bcs
-
+tmake-coff-a29k
 Do-last:
 
 echo Done in `pwd`.
@@ -45,7 +45,10 @@ echo Done in `pwd`.
 #
 #
 # $Log$
-# Revision 1.3  1991/06/14 22:11:24  steve
+# Revision 1.4  1991/07/15 23:41:06  steve
+# *** empty log message ***
+#
+# Revision 1.3  1991/06/14  22:11:24  steve
 # *** empty log message ***
 #
 # Revision 1.2  1991/05/31  01:01:51  steve