Copy is_linker_input to archive member

We must copy is_linker_input to archive member.

	PR binutils/18209
	* archive.c (_bfd_get_elt_at_filepos): Also copy is_linker_input.
This commit is contained in:
H.J. Lu 2015-04-24 15:02:56 -07:00
parent 6faec16b1c
commit 69b52ab8c5
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2015-04-24 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/18209
* archive.c (_bfd_get_elt_at_filepos): Copy is_linker_input.
2015-04-24 Jiong Wang <jiong.wang@arm.com>
* elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Reject

View File

@ -730,6 +730,9 @@ _bfd_get_elt_at_filepos (bfd *archive, file_ptr filepos)
| BFD_DECOMPRESS
| BFD_COMPRESS_GABI);
/* Copy is_linker_input. */
n_bfd->is_linker_input = archive->is_linker_input;
if (_bfd_add_bfd_to_archive_cache (archive, filepos, n_bfd))
return n_bfd;