}
bfd_openr (filename, target)     CONST char *filename;     CONST char *target;{  bfd *nbfd;  const bfd_target *target_vec;  nbfd = _bfd_new_bfd();  if (nbfd == NULL) {    bfd_set_error (bfd_error_no_memory);    return NULL;  }  target_vec = bfd_find_target (target, nbfd);  if (target_vec == NULL) {    bfd_set_error (bfd_error_invalid_target);    return NULL;  }  nbfd->filename = filename;  nbfd->direction = read_direction;  if (bfd_open_file (nbfd) == NULL) {    bfd_set_error (bfd_error_system_call);	/* File didn't exist, or some such */    bfd_release(nbfd,0);    return NULL;  }  return nbfd;}