*** empty log message ***

This commit is contained in:
Steve Chamberlain 1991-05-13 20:26:24 +00:00
parent fb030779ae
commit c42538adaf
1 changed files with 36 additions and 28 deletions

View File

@ -40,6 +40,12 @@ You should have received a copy of the GNU General Public License along with
#define sp(x) bfd_h_put_x(abfd, x, &x) #define sp(x) bfd_h_put_x(abfd, x, &x)
#ifndef I960
#define GDB_EXPORT static
#else
#define GDB_EXPORT /* nothing */
#endif
PROTO(static void,force_indices_file_symbol_relative,(bfd *abfd, PROTO(static void,force_indices_file_symbol_relative,(bfd *abfd,
struct internal_syment *symtab)); struct internal_syment *symtab));
@ -70,9 +76,9 @@ DEFUN(set_index,(symbol, idx),
*/ */
GDB_EXPORT
static void void
DEFUN(swap_reloc_in,(abfd, reloc_src, reloc_dst), DEFUN(bfd_swap_reloc_in,(abfd, reloc_src, reloc_dst),
bfd *abfd AND bfd *abfd AND
RELOC *reloc_src AND RELOC *reloc_src AND
struct internal_reloc *reloc_dst) struct internal_reloc *reloc_dst)
@ -85,8 +91,9 @@ DEFUN(swap_reloc_in,(abfd, reloc_src, reloc_dst),
#endif #endif
} }
static void GDB_EXPORT
DEFUN(swap_reloc_out,(abfd, reloc_src, reloc_dst), void
DEFUN(bfd_swap_reloc_out,(abfd, reloc_src, reloc_dst),
bfd *abfd AND bfd *abfd AND
struct internal_reloc *reloc_src AND struct internal_reloc *reloc_src AND
struct external_reloc *reloc_dst) struct external_reloc *reloc_dst)
@ -100,8 +107,8 @@ DEFUN(swap_reloc_out,(abfd, reloc_src, reloc_dst),
} }
static void GDB_EXPORT void
DEFUN(swap_filehdr_in,(abfd, filehdr_src, filehdr_dst), DEFUN(bfd_swap_filehdr_in,(abfd, filehdr_src, filehdr_dst),
bfd *abfd AND bfd *abfd AND
FILHDR *filehdr_src AND FILHDR *filehdr_src AND
struct internal_filehdr *filehdr_dst) struct internal_filehdr *filehdr_dst)
@ -115,8 +122,8 @@ DEFUN(swap_filehdr_in,(abfd, filehdr_src, filehdr_dst),
filehdr_dst->f_flags = bfd_h_get_x(abfd,filehdr_src-> f_flags); filehdr_dst->f_flags = bfd_h_get_x(abfd,filehdr_src-> f_flags);
} }
static void GDB_EXPORT void
DEFUN(swap_filehdr_out,(abfd, filehdr_in, filehdr_out), DEFUN(bfd_swap_filehdr_out,(abfd, filehdr_in, filehdr_out),
bfd *abfd AND bfd *abfd AND
struct internal_filehdr *filehdr_in AND struct internal_filehdr *filehdr_in AND
FILHDR *filehdr_out) FILHDR *filehdr_out)
@ -131,7 +138,8 @@ DEFUN(swap_filehdr_out,(abfd, filehdr_in, filehdr_out),
} }
static void GDB_EXPORT
void
DEFUN(bfd_coff_swap_sym_in,(abfd, ext, in), DEFUN(bfd_coff_swap_sym_in,(abfd, ext, in),
bfd *abfd AND bfd *abfd AND
SYMENT *ext AND SYMENT *ext AND
@ -151,7 +159,7 @@ DEFUN(bfd_coff_swap_sym_in,(abfd, ext, in),
in->n_numaux = bfd_h_get_x(abfd, ext->e_numaux); in->n_numaux = bfd_h_get_x(abfd, ext->e_numaux);
} }
static void GDB_EXPORT void
DEFUN(bfd_coff_swap_sym_out,(abfd,in, ext), DEFUN(bfd_coff_swap_sym_out,(abfd,in, ext),
bfd *abfd AND bfd *abfd AND
struct internal_syment *in AND struct internal_syment *in AND
@ -171,7 +179,7 @@ DEFUN(bfd_coff_swap_sym_out,(abfd,in, ext),
bfd_h_put_x(abfd, in->n_numaux , ext->e_numaux); bfd_h_put_x(abfd, in->n_numaux , ext->e_numaux);
} }
static void GDB_EXPORT void
DEFUN(bfd_coff_swap_aux_in,(abfd, ext, type, class, in), DEFUN(bfd_coff_swap_aux_in,(abfd, ext, type, class, in),
bfd *abfd AND bfd *abfd AND
AUXENT *ext AND AUXENT *ext AND
@ -222,7 +230,7 @@ DEFUN(bfd_coff_swap_aux_in,(abfd, ext, type, class, in),
} }
} }
static void GDB_EXPORT void
DEFUN(bfd_coff_swap_aux_out,(abfd, in, type, class, ext), DEFUN(bfd_coff_swap_aux_out,(abfd, in, type, class, ext),
bfd *abfd AND bfd *abfd AND
union internal_auxent *in AND union internal_auxent *in AND
@ -273,7 +281,7 @@ DEFUN(bfd_coff_swap_aux_out,(abfd, in, type, class, ext),
} }
} }
static void GDB_EXPORT void
DEFUN(bfd_coff_swap_lineno_in,(abfd, ext, in), DEFUN(bfd_coff_swap_lineno_in,(abfd, ext, in),
bfd *abfd AND bfd *abfd AND
LINENO *ext AND LINENO *ext AND
@ -283,7 +291,7 @@ DEFUN(bfd_coff_swap_lineno_in,(abfd, ext, in),
in->l_lnno = bfd_h_get_x(abfd, ext->l_lnno); in->l_lnno = bfd_h_get_x(abfd, ext->l_lnno);
} }
static void GDB_EXPORT void
DEFUN(bfd_coff_swap_lineno_out,(abfd, in, ext), DEFUN(bfd_coff_swap_lineno_out,(abfd, in, ext),
bfd *abfd AND bfd *abfd AND
struct internal_lineno *in AND struct internal_lineno *in AND
@ -296,8 +304,8 @@ DEFUN(bfd_coff_swap_lineno_out,(abfd, in, ext),
static void GDB_EXPORT void
DEFUN(swap_aouthdr_in,(abfd, aouthdr_ext, aouthdr_int), DEFUN(bfd_swap_aouthdr_in,(abfd, aouthdr_ext, aouthdr_int),
bfd *abfd AND bfd *abfd AND
AOUTHDR *aouthdr_ext AND AOUTHDR *aouthdr_ext AND
struct internal_aouthdr *aouthdr_int) struct internal_aouthdr *aouthdr_int)
@ -315,8 +323,8 @@ DEFUN(swap_aouthdr_in,(abfd, aouthdr_ext, aouthdr_int),
#endif #endif
} }
static void GDB_EXPORT void
DEFUN(swap_aouthdr_out,(abfd, aouthdr_in, aouthdr_out), DEFUN(bfd_swap_aouthdr_out,(abfd, aouthdr_in, aouthdr_out),
bfd *abfd AND bfd *abfd AND
struct internal_aouthdr *aouthdr_in AND struct internal_aouthdr *aouthdr_in AND
AOUTHDR *aouthdr_out) AOUTHDR *aouthdr_out)
@ -334,8 +342,8 @@ DEFUN(swap_aouthdr_out,(abfd, aouthdr_in, aouthdr_out),
#endif #endif
} }
static void GDB_EXPORT void
DEFUN(swap_scnhdr_in,(abfd, scnhdr_ext, scnhdr_int), DEFUN(bfd_coff_swap_scnhdr_in,(abfd, scnhdr_ext, scnhdr_int),
bfd *abfd AND bfd *abfd AND
SCNHDR *scnhdr_ext AND SCNHDR *scnhdr_ext AND
struct internal_scnhdr *scnhdr_int) struct internal_scnhdr *scnhdr_int)
@ -516,7 +524,7 @@ DEFUN(coff_real_object_p,(abfd, nscns, internal_f, internal_a),
unsigned int i; unsigned int i;
for (i = 0; i < nscns; i++) { for (i = 0; i < nscns; i++) {
struct internal_scnhdr tmp; struct internal_scnhdr tmp;
swap_scnhdr_in(abfd, external_sections + i, &tmp); bfd_coff_swap_scnhdr_in(abfd, external_sections + i, &tmp);
make_a_section_from_file(abfd,&tmp); make_a_section_from_file(abfd,&tmp);
} }
} }
@ -627,7 +635,7 @@ DEFUN(coff_object_p,(abfd),
if (bfd_read((PTR) &filehdr, 1, FILHSZ, abfd) != FILHSZ) if (bfd_read((PTR) &filehdr, 1, FILHSZ, abfd) != FILHSZ)
return 0; return 0;
swap_filehdr_in(abfd, &filehdr, &internal_f); bfd_swap_filehdr_in(abfd, &filehdr, &internal_f);
if (BADMAG(internal_f)) { if (BADMAG(internal_f)) {
bfd_error = wrong_format; bfd_error = wrong_format;
@ -639,7 +647,7 @@ DEFUN(coff_object_p,(abfd),
if (bfd_read((PTR) &opthdr, 1,AOUTSZ, abfd) != AOUTSZ) { if (bfd_read((PTR) &opthdr, 1,AOUTSZ, abfd) != AOUTSZ) {
return 0; return 0;
} }
swap_aouthdr_in(abfd, &opthdr, &internal_a); bfd_swap_aouthdr_in(abfd, &opthdr, &internal_a);
} }
/* Seek past the opt hdr stuff */ /* Seek past the opt hdr stuff */
@ -1164,7 +1172,7 @@ bfd *abfd;
#else #else
n.r_type = q->howto->type; n.r_type = q->howto->type;
#endif #endif
swap_reloc_out(abfd, &n, &dst); bfd_swap_reloc_out(abfd, &n, &dst);
bfd_write((PTR) &n, 1, RELSZ, abfd); bfd_write((PTR) &n, 1, RELSZ, abfd);
} }
} }
@ -1652,12 +1660,12 @@ bfd *abfd)
return false; return false;
{ {
FILHDR buff; FILHDR buff;
swap_filehdr_out(abfd, &internal_f, &buff); bfd_swap_filehdr_out(abfd, &internal_f, &buff);
bfd_write((PTR) &buff, 1, FILHSZ, abfd); bfd_write((PTR) &buff, 1, FILHSZ, abfd);
} }
if (abfd->flags & EXEC_P) { if (abfd->flags & EXEC_P) {
AOUTHDR buff; AOUTHDR buff;
swap_aouthdr_out(abfd, &internal_a, &buff); bfd_swap_aouthdr_out(abfd, &internal_a, &buff);
bfd_write((PTR) &buff, 1, AOUTSZ, abfd); bfd_write((PTR) &buff, 1, AOUTSZ, abfd);
} }
return true; return true;
@ -2347,7 +2355,7 @@ DEFUN(coff_slurp_reloc_table,(abfd, asect, symbols),
src++) { src++) {
struct internal_reloc dst; struct internal_reloc dst;
asymbol *ptr; asymbol *ptr;
swap_reloc_in(abfd, src, &dst); bfd_swap_reloc_in(abfd, src, &dst);
dst.r_symndx += obj_symbol_slew(abfd); dst.r_symndx += obj_symbol_slew(abfd);
cache_ptr->sym_ptr_ptr = symbols + obj_convert(abfd)[dst.r_symndx]; cache_ptr->sym_ptr_ptr = symbols + obj_convert(abfd)[dst.r_symndx];