186 |
object *old_vs_top=vs_top; |
object *old_vs_top=vs_top; |
187 |
static int nbfd; |
static int nbfd; |
188 |
bfd *b; |
bfd *b; |
189 |
|
bfd_error_type myerr; |
190 |
unsigned u,v; |
unsigned u,v; |
191 |
asymbol **q; |
asymbol **q; |
192 |
asection *s; |
asection *s; |
224 |
|
|
225 |
if (!(b=bfd_openr(filename,0))) |
if (!(b=bfd_openr(filename,0))) |
226 |
FEerror("Cannot open bfd"); |
FEerror("Cannot open bfd"); |
227 |
|
if ((myerr=bfd_get_error()) && myerr!=3) |
228 |
|
FEerror("Unknown bfd error code on openr"); |
229 |
if (!bfd_check_format(b,bfd_object)) |
if (!bfd_check_format(b,bfd_object)) |
230 |
FEerror("Unknown bfd format"); |
FEerror("Unknown bfd format"); |
231 |
|
if ((myerr=bfd_get_error()) && myerr!=3) |
232 |
|
FEerror("Unknown bfd error code on check_format"); |
233 |
|
bfd_set_error(0); |
234 |
|
|
235 |
current=NULL; |
current=NULL; |
236 |
for (s=b->sections;s;s=s->next) { |
for (s=b->sections;s;s=s->next) { |
237 |
|
|