Tue Sep 14 09:12:17 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
- * paread.c: Include <time.h> before libbfd.h.
+ * paread.c, coffread.c, elfread.c: Include <time.h> before libbfd.h.
* paread.c: Define BYTES_IN_WORD before including aout/aout64.h.
#include <string.h>
+#include <time.h> /* For time_t in libbfd.h. */
#include "libbfd.h" /* FIXME secret internal data from BFD */
#include "coff/internal.h" /* Internal format of COFF symbols in BFD */
#include "libcoff.h" /* FIXME secret internal data from BFD */
return type;
}
\f
-/* Manage the vector of line numbers. */
+/* Manage the vector of line numbers. FIXME: Use record_line instead. */
static void
coff_record_line (line, pc)
last_source_start_addr = cur_src_start_addr;
+ /* For no good reason, this file stores the number of entries in a
+ separate variable instead of in line_vector->nitems. Fix it. */
+ if (line_vector)
+ line_vector->nitems = line_vector_index;
+
/* For COFF, we only have one subfile, so we can just look at
subfiles and not worry about there being other elements in the
chain. We fill in various fields now because we didn't know them
/* Fake up support for relocating symbol addresses. FIXME. */
-struct section_offsets coff_symfile_faker = {0};
+struct section_offsets coff_symfile_faker = {{0}};
struct section_offsets *
coff_symfile_offsets (objfile, addr)