mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 10:34:21 +08:00
Properly copy BFD_COMPRESS and BFD_DECOMPRESS to archive element.
2010-11-12 H.J. Lu <hongjiu.lu@intel.com> * archive.c (_bfd_get_elt_at_filepos): Copy BFD_COMPRESS and BFD_DECOMPRESS. (bfd_openr_next_archived_file): Revert the last change.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2010-11-12 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* archive.c (_bfd_get_elt_at_filepos): Copy BFD_COMPRESS and
|
||||||
|
BFD_DECOMPRESS.
|
||||||
|
(bfd_openr_next_archived_file): Revert the last change.
|
||||||
|
|
||||||
2010-11-11 Mingming Sun <mingm.sun@gmail.com>
|
2010-11-11 Mingming Sun <mingm.sun@gmail.com>
|
||||||
|
|
||||||
* archures.c (bfd_mach_mips_loongson_3a): Defined.
|
* archures.c (bfd_mach_mips_loongson_3a): Defined.
|
||||||
|
@ -655,6 +655,9 @@ _bfd_get_elt_at_filepos (bfd *archive, file_ptr filepos)
|
|||||||
|
|
||||||
n_nfd->arelt_data = new_areldata;
|
n_nfd->arelt_data = new_areldata;
|
||||||
|
|
||||||
|
/* Copy BFD_COMPRESS and BFD_DECOMPRESS flags. */
|
||||||
|
n_nfd->flags |= archive->flags & (BFD_COMPRESS | BFD_DECOMPRESS);
|
||||||
|
|
||||||
if (_bfd_add_bfd_to_archive_cache (archive, filepos, n_nfd))
|
if (_bfd_add_bfd_to_archive_cache (archive, filepos, n_nfd))
|
||||||
return n_nfd;
|
return n_nfd;
|
||||||
|
|
||||||
@ -697,8 +700,6 @@ DESCRIPTION
|
|||||||
bfd *
|
bfd *
|
||||||
bfd_openr_next_archived_file (bfd *archive, bfd *last_file)
|
bfd_openr_next_archived_file (bfd *archive, bfd *last_file)
|
||||||
{
|
{
|
||||||
bfd *abfd;
|
|
||||||
|
|
||||||
if ((bfd_get_format (archive) != bfd_archive)
|
if ((bfd_get_format (archive) != bfd_archive)
|
||||||
|| (archive->direction == write_direction))
|
|| (archive->direction == write_direction))
|
||||||
{
|
{
|
||||||
@ -706,14 +707,8 @@ bfd_openr_next_archived_file (bfd *archive, bfd *last_file)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
abfd = BFD_SEND (archive,
|
return BFD_SEND (archive,
|
||||||
openr_next_archived_file, (archive, last_file));
|
openr_next_archived_file, (archive, last_file));
|
||||||
|
|
||||||
/* Copy BFD_COMPRESS and BFD_DECOMPRESS flags. */
|
|
||||||
if (abfd)
|
|
||||||
abfd->flags |= archive->flags & (BFD_COMPRESS | BFD_DECOMPRESS);
|
|
||||||
|
|
||||||
return abfd;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bfd *
|
bfd *
|
||||||
|
Reference in New Issue
Block a user