new_bfd_contained_in : Inherit target->defaulted from parent
This commit is contained in:
parent
69e0d34d4d
commit
9068cbe7b4
1 changed files with 6 additions and 3 deletions
|
@ -63,7 +63,9 @@ bfd *new_bfd()
|
||||||
nbfd->sections = (asection *)NULL;
|
nbfd->sections = (asection *)NULL;
|
||||||
nbfd->cacheable = false;
|
nbfd->cacheable = false;
|
||||||
nbfd->flags = NO_FLAGS;
|
nbfd->flags = NO_FLAGS;
|
||||||
nbfd->mtime_set = 0;
|
nbfd->mtime_set = false;
|
||||||
|
|
||||||
|
|
||||||
return nbfd;
|
return nbfd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,6 +78,7 @@ bfd *obfd;
|
||||||
nbfd->xvec = obfd->xvec;
|
nbfd->xvec = obfd->xvec;
|
||||||
nbfd->my_archive = obfd;
|
nbfd->my_archive = obfd;
|
||||||
nbfd->direction = read_direction;
|
nbfd->direction = read_direction;
|
||||||
|
nbfd->target_defaulted = obfd->target_defaulted;
|
||||||
return nbfd;
|
return nbfd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,10 +192,10 @@ DEFUN(bfd_fdopenr,(filename, target, fd),
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef FASCIST_FDOPEN
|
#ifdef FASCIST_FDOPEN
|
||||||
nbfd->iostream = (char *) fdopen (fd, "rb");
|
nbfd->iostream = (char *) fdopen (fd, FOPEN_RB);
|
||||||
#else
|
#else
|
||||||
/* if the fd were open for read only, this still would not hurt: */
|
/* if the fd were open for read only, this still would not hurt: */
|
||||||
nbfd->iostream = (char *) fdopen (fd, "r+b");
|
nbfd->iostream = (char *) fdopen (fd, FOPEN_RUB);
|
||||||
#endif
|
#endif
|
||||||
if (nbfd->iostream == NULL) {
|
if (nbfd->iostream == NULL) {
|
||||||
(void) obstack_free (&nbfd->memory, (PTR)0);
|
(void) obstack_free (&nbfd->memory, (PTR)0);
|
||||||
|
|
Loading…
Reference in a new issue