m68kcoff.c
m88k-bcs.c
newsos3.c
+amdcoff.c
oasys.c
opncls.c
reloc.c
#
#
# $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
cplus-dem.c
filemode.c
gmalloc.c
+am29k-pinsn.c
i960-pinsn.c
m68k-pinsn.c
nm.c
#
#
# $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
#
#
a.out.sun4.h
a.out.vax.h
a29k-opcode.h
+amdcoff.h
ansidecl.h
aout64.h
ar.h
#
#
# $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
char *args;
};
-static const struct a29k_opcode a29k_opcodes[] =
+static CONST struct a29k_opcode a29k_opcodes[] =
{
{ "add", 0x14000000, "c,a,b" },
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
/*** coff information for 88k bcs */
+#ifndef M88
+#define M88
+#endif
+
/********************** FILE HEADER **********************/
struct filehdr {
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 */
*/
char *iostream;
- /* Is the file being cached @xref{Caching}.
+ /* Is the file being cached @xref{File Caching}.
*/
boolean cacheable;
#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 **));
*/
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:
*/
/* 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
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.
"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
};
-#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
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;
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 **********************/
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 */
};
#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>
#include <sys/h-tahoebsd.h>
#endif
+#if HOST_SYS == RTBSD_SYS
+#include <sys/h-rtbsd.h>
+#endif
+
#endif
# 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`.
#
#
# $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