mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
PR binutils/14567
* opncls.c (opncls_iovec): Forward declare. (_bfd_new_bfd_contained_in): If using opncls_iovec, copy iostream to new bfd.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2012-11-06 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
PR binutils/14567
|
||||||
|
* opncls.c (opncls_iovec): Forward declare.
|
||||||
|
(_bfd_new_bfd_contained_in): If using opncls_iovec, copy iostream
|
||||||
|
to new bfd.
|
||||||
|
|
||||||
2012-11-06 Alan Modra <amodra@gmail.com>
|
2012-11-06 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* mach-o.c (bfd_mach_o_close_and_cleanup): Don't call
|
* mach-o.c (bfd_mach_o_close_and_cleanup): Don't call
|
||||||
|
@ -107,6 +107,8 @@ _bfd_new_bfd (void)
|
|||||||
return nbfd;
|
return nbfd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const struct bfd_iovec opncls_iovec;
|
||||||
|
|
||||||
/* Allocate a new BFD as a member of archive OBFD. */
|
/* Allocate a new BFD as a member of archive OBFD. */
|
||||||
|
|
||||||
bfd *
|
bfd *
|
||||||
@ -119,6 +121,8 @@ _bfd_new_bfd_contained_in (bfd *obfd)
|
|||||||
return NULL;
|
return NULL;
|
||||||
nbfd->xvec = obfd->xvec;
|
nbfd->xvec = obfd->xvec;
|
||||||
nbfd->iovec = obfd->iovec;
|
nbfd->iovec = obfd->iovec;
|
||||||
|
if (obfd->iovec == &opncls_iovec)
|
||||||
|
nbfd->iostream = obfd->iostream;
|
||||||
nbfd->my_archive = obfd;
|
nbfd->my_archive = obfd;
|
||||||
nbfd->direction = read_direction;
|
nbfd->direction = read_direction;
|
||||||
nbfd->target_defaulted = obfd->target_defaulted;
|
nbfd->target_defaulted = obfd->target_defaulted;
|
||||||
|
Reference in New Issue
Block a user