This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: One more libbfd question...


   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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]