aboutsummaryrefslogtreecommitdiff
path: root/bfd/archive.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-04-24 15:02:56 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-04-24 15:03:21 -0700
commit69b52ab8c566575e4749acf0a04090491009af95 (patch)
treed0eb6a2b46f523f7d8216a55200eb76b51a87bef /bfd/archive.c
parent6faec16b1c633a8043791e0d15d7e7f1c8d448c1 (diff)
downloadgdb-69b52ab8c566575e4749acf0a04090491009af95.zip
gdb-69b52ab8c566575e4749acf0a04090491009af95.tar.gz
gdb-69b52ab8c566575e4749acf0a04090491009af95.tar.bz2
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.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r--bfd/archive.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/archive.c b/bfd/archive.c
index 31d86f3..1715474 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;