#include <bfd.h>
#include <stdio.h>
+#include "bucomm.h"
#include "coff/internal.h"
#include "../bfd/libcoff.h"
static int rawcount;
static bfd *abfd;
extern char *xcalloc ();
-extern char *xmalloc ();
#define PTR_SIZE 4
#define SHORT_SIZE 2
#define INT_SIZE 4
/*int l;*/
static void
push_scope (link)
+ int link;
{
struct coff_scope *n = empty_scope ();
if (link)
last_struct = res;
res->type = coff_structdef_type;
res->u.astructdef.elements = empty_scope ();
+ res->u.astructdef.idx = 0;
res->u.astructdef.isstruct = (type & 0xf) == T_STRUCT;
res->size = aux->x_sym.x_misc.x_lnsz.x_size;
}
{
int i;
int infile = 0;
- struct coff_ofile *head = (struct coff_ofile *) malloc (sizeof (struct coff_ofile));
+ struct coff_ofile *head =
+ (struct coff_ofile *) xmalloc (sizeof (struct coff_ofile));
ofile = head;
head->source_head = 0;
head->source_tail = 0;
-
+ head->nsources = 0;
+ head->symbol_list_tail = 0;
+ head->symbol_list_head = 0;
do_sections_p1 (head);
push_scope (1);
rawcount = obj_raw_syment_count (abfd);;
tindex = (struct coff_symbol **) (xcalloc (sizeof (struct coff_symbol *), rawcount));
- p = doit (abfd);
+ p = doit ();
return p;
}