RANLIB = ranlib
AR =
-INCDIR = $(srcdir)/../include-cygnus
+INCDIR = $(srcdir)/../include
CSEARCH = -I$(INCDIR)
#### host and target dependent Makefile fragments come in here.
obj_textsec (abfd)->filepos = N_TXTOFF(*execp);
obj_datasec (abfd)->filepos = N_DATOFF(*execp);
- obj_textsec (abfd)->rel_filepos = N_TROFF(*execp);
- obj_datasec (abfd)->rel_filepos = N_DROFF(*execp);
+ obj_textsec (abfd)->rel_filepos = N_TRELOFF(*execp);
+ obj_datasec (abfd)->rel_filepos = N_DRELOFF(*execp);
obj_textsec (abfd)->flags = (execp->a_trsize != 0 ?
(SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_HAS_CONTENTS) :
sunos4_write_syms (abfd);
- bfd_seek (abfd, (long)(N_TROFF(*execp)), false);
+ bfd_seek (abfd, (long)(N_TRELOFF(*execp)), false);
if (!sunos4_squirt_out_relocs (abfd, obj_textsec (abfd))) return false;
- bfd_seek (abfd, (long)(N_DROFF(*execp)), false);
+ bfd_seek (abfd, (long)(N_DRELOFF(*execp)), false);
if (!sunos4_squirt_out_relocs (abfd, obj_datasec (abfd))) return false;
}
symbol_count = symbol_size / sizeof (struct nlist);
strings = bfd_alloc(abfd, string_size + 1);
- cached = bfd_zalloc(abfd, symbol_count * sizeof(aout_symbol_type));
- syms = bfd_alloc(abfd, symbol_size);
+ cached = (aout_symbol_type *)
+ bfd_zalloc(abfd, symbol_count * sizeof(aout_symbol_type));
+ syms = (struct nlist *) bfd_alloc(abfd, symbol_size);
bfd_seek (abfd, obj_sym_filepos (abfd), SEEK_SET);
if (bfd_read ((PTR)syms, 1, symbol_size, abfd) != symbol_size) {
/* The archive has at least 16 bytes in it */
bfd_seek (abfd, -16L, SEEK_CUR);
+ /* This should be using RANLIBMAG, but at least it can be grepped for
+ in this comment. */
if (strncmp (nextname, "__.SYMDEF ", 16)) {
bfd_has_map (abfd) = false;
return true;
stat (arch->filename, &statbuf);
memset ((char *)(&hdr), 0, sizeof (struct ar_hdr));
- sprintf (hdr.ar_name, "__.SYMDEF");
+ sprintf (hdr.ar_name, RANLIBMAG);
sprintf (hdr.ar_size, "%-10d", (int) mapsize);
sprintf (hdr.ar_date, "%ld", statbuf.st_mtime);
hdr.ar_fmag[0] = '`'; hdr.ar_fmag[1] = '\n';
boolean loop;
ieee_ar_data_type *ar;
unsigned int i;
- return 0;
+ return 0; /* FIXME */
ieee_seek(abfd, (file_ptr) 0);
if (this_byte(abfd) != Module_Beginning) return (bfd_target*)NULL;
next_byte(abfd);
unsigned int part;
ieee_data_type *ieee;
char buffer[300];
+
ieee_data(abfd) = 0;
ieee_mkobject(abfd);
ieee = ieee_data(abfd);
ptr(abfd)= buffer;
if (*(ptr(abfd)++) != Module_Beginning) goto fail;
-
ieee->read_symbols= false;
ieee->read_data= false;
obj_textsec (abfd)->filepos = N_TXTOFF(*execp);
obj_datasec (abfd)->filepos = N_DATOFF(*execp);
- obj_textsec (abfd)->rel_filepos = N_TROFF(*execp);
- obj_datasec (abfd)->rel_filepos = N_DROFF(*execp);
+ obj_textsec (abfd)->rel_filepos = N_TRELOFF(*execp);
+ obj_datasec (abfd)->rel_filepos = N_DRELOFF(*execp);
obj_textsec (abfd)->flags = (execp->a_trsize != 0 ?
(SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_HAS_CONTENTS) :
sunos4_write_syms (abfd);
- bfd_seek (abfd, (long)(N_TROFF(*execp)), false);
+ bfd_seek (abfd, (long)(N_TRELOFF(*execp)), false);
if (!sunos4_squirt_out_relocs (abfd, obj_textsec (abfd))) return false;
- bfd_seek (abfd, (long)(N_DROFF(*execp)), false);
+ bfd_seek (abfd, (long)(N_DRELOFF(*execp)), false);
if (!sunos4_squirt_out_relocs (abfd, obj_datasec (abfd))) return false;
}
symbol_count = symbol_size / sizeof (struct nlist);
strings = bfd_alloc(abfd, string_size + 1);
- cached = bfd_zalloc(abfd, symbol_count * sizeof(aout_symbol_type));
- syms = bfd_alloc(abfd, symbol_size);
+ cached = (aout_symbol_type *)
+ bfd_zalloc(abfd, symbol_count * sizeof(aout_symbol_type));
+ syms = (struct nlist *) bfd_alloc(abfd, symbol_size);
bfd_seek (abfd, obj_sym_filepos (abfd), SEEK_SET);
if (bfd_read ((PTR)syms, 1, symbol_size, abfd) != symbol_size) {