From a737c70bdefcff76e922e4b0671ac001c1ae4e3d Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Mon, 15 Jul 1991 23:41:06 +0000 Subject: [PATCH] *** empty log message *** --- bfd/.Sanitize | 6 +++++- binutils/.Sanitize | 6 +++++- include/.Sanitize | 6 +++++- include/a29k-opcode.h | 9 ++++++--- include/bcs88kcoff.h | 4 ++++ include/bfd.h | 45 ++++++++++++++++++++---------------------- include/coff-m88k.h | 28 +++++++++++++------------- include/internalcoff.h | 12 +++++++++++ include/sysdep.h | 5 +++++ ld/config/.Sanitize | 9 ++++++--- 10 files changed, 83 insertions(+), 47 deletions(-) diff --git a/bfd/.Sanitize b/bfd/.Sanitize index 89a5e3dec6f..ed17964daa3 100644 --- a/bfd/.Sanitize +++ b/bfd/.Sanitize @@ -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 diff --git a/binutils/.Sanitize b/binutils/.Sanitize index f362d8a3097..3006fe60562 100644 --- a/binutils/.Sanitize +++ b/binutils/.Sanitize @@ -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 # # diff --git a/include/.Sanitize b/include/.Sanitize index 91dd531f8e2..3ddc06f147b 100644 --- a/include/.Sanitize +++ b/include/.Sanitize @@ -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 diff --git a/include/a29k-opcode.h b/include/a29k-opcode.h index 59aac0ec20c..b2972ffffce 100755 --- a/include/a29k-opcode.h +++ b/include/a29k-opcode.h @@ -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 diff --git a/include/bcs88kcoff.h b/include/bcs88kcoff.h index ca7ef835854..8710f43bf29 100755 --- a/include/bcs88kcoff.h +++ b/include/bcs88kcoff.h @@ -1,5 +1,9 @@ /*** coff information for 88k bcs */ +#ifndef M88 +#define M88 +#endif + /********************** FILE HEADER **********************/ struct filehdr { diff --git a/include/bfd.h b/include/bfd.h index 425e9ff8d8e..3f44d559def 100644 --- a/include/bfd.h +++ b/include/bfd.h @@ -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 diff --git a/include/coff-m88k.h b/include/coff-m88k.h index baf65879126..40b98ff56bd 100755 --- a/include/coff-m88k.h +++ b/include/coff-m88k.h @@ -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 diff --git a/include/internalcoff.h b/include/internalcoff.h index f0592afe51d..cdce49079a1 100755 --- a/include/internalcoff.h +++ b/include/internalcoff.h @@ -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 */ }; diff --git a/include/sysdep.h b/include/sysdep.h index e69da675a50..fc17f7fd4fe 100755 --- a/include/sysdep.h +++ b/include/sysdep.h @@ -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 @@ -122,4 +123,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #endif +#if HOST_SYS == RTBSD_SYS +#include +#endif + #endif diff --git a/ld/config/.Sanitize b/ld/config/.Sanitize index 3ae5477e7ba..7629f3cb49a 100644 --- a/ld/config/.Sanitize +++ b/ld/config/.Sanitize @@ -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 -- 2.30.2