Date: Sat, 27 May 2000 03:05:37 -0700 (PDT)
From: Chris Lattner <sabre@skylab.org>
NewMod->BFD = bfd_openr(Filename, 0);
if (NewMod->BFD == 0) {
bfd_free(NewMod);
return 0;
}
printf("Upper Bound=%d\n",
bfd_get_symtab_upper_bound(NewMod->BFD));
You need to call bfd_check_format somewhere in between bfd_openr and
bfd_get_symtab_upper_bound.
Ian