From 69b52ab8c566575e4749acf0a04090491009af95 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 24 Apr 2015 15:02:56 -0700 Subject: [PATCH] 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. --- bfd/ChangeLog | 5 +++++ bfd/archive.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3c33fadecb2..2a6b6a4094b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2015-04-24 H.J. Lu + + PR binutils/18209 + * archive.c (_bfd_get_elt_at_filepos): Copy is_linker_input. + 2015-04-24 Jiong Wang * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Reject diff --git a/bfd/archive.c b/bfd/archive.c index 31d86f3f138..1715474ea6c 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -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; -- 2.30.2