Minor changes to accomodate merging of three include file directories.
This commit is contained in:
parent
bad3df6720
commit
d6a554ae83
5 changed files with 20 additions and 16 deletions
|
@ -23,7 +23,7 @@ srcdir = .
|
|||
|
||||
RANLIB = ranlib
|
||||
AR =
|
||||
INCDIR = $(srcdir)/../include-cygnus
|
||||
INCDIR = $(srcdir)/../include
|
||||
CSEARCH = -I$(INCDIR)
|
||||
|
||||
#### host and target dependent Makefile fragments come in here.
|
||||
|
|
13
bfd/aout.c
13
bfd/aout.c
|
@ -312,8 +312,8 @@ sunos4_object_p (abfd)
|
|||
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) :
|
||||
|
@ -506,10 +506,10 @@ sunos4_write_object_contents (abfd)
|
|||
|
||||
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;
|
||||
}
|
||||
|
@ -1137,8 +1137,9 @@ DEFUN(sunos4_slurp_symbol_table, (abfd),
|
|||
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) {
|
||||
|
|
|
@ -417,6 +417,8 @@ bfd_slurp_bsd_armap (abfd)
|
|||
/* 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;
|
||||
|
@ -1107,7 +1109,7 @@ bsd_write_armap (arch, elength, map, orl_count, stridx)
|
|||
|
||||
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';
|
||||
|
|
|
@ -816,7 +816,7 @@ DEFUN(ieee_archive_p,(abfd),
|
|||
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);
|
||||
|
@ -900,6 +900,7 @@ DEFUN(ieee_object_p,(abfd),
|
|||
unsigned int part;
|
||||
ieee_data_type *ieee;
|
||||
char buffer[300];
|
||||
|
||||
ieee_data(abfd) = 0;
|
||||
ieee_mkobject(abfd);
|
||||
ieee = ieee_data(abfd);
|
||||
|
@ -910,7 +911,6 @@ DEFUN(ieee_object_p,(abfd),
|
|||
ptr(abfd)= buffer;
|
||||
if (*(ptr(abfd)++) != Module_Beginning) goto fail;
|
||||
|
||||
|
||||
ieee->read_symbols= false;
|
||||
ieee->read_data= false;
|
||||
ieee->section_count = 0;
|
||||
|
|
13
bfd/sunos.c
13
bfd/sunos.c
|
@ -312,8 +312,8 @@ sunos4_object_p (abfd)
|
|||
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) :
|
||||
|
@ -506,10 +506,10 @@ sunos4_write_object_contents (abfd)
|
|||
|
||||
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;
|
||||
}
|
||||
|
@ -1137,8 +1137,9 @@ DEFUN(sunos4_slurp_symbol_table, (abfd),
|
|||
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) {
|
||||
|
|
Loading…
Reference in a new issue