readelf: Reset file position to beginning for thin archive members
authorAndrei Homescu <ah@immunant.com>
Thu, 1 Jul 2021 11:01:55 +0000 (12:01 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 1 Jul 2021 11:01:55 +0000 (12:01 +0100)
commit75a2da57a1bbff8686f56a43aabe1d7e55147894
treedf54a4d3cdd1241fff656831cd238b4ee0e8b73f
parent417f991f08cb869e8274e0a6af6c88b14413e0ec
readelf: Reset file position to beginning for thin archive members

* readelf.c (process_archive): Reset file position to the
beginning when calling process_object for thin archive members.
* testsuite/binutils-all/readelf.exp: Add test.
* testsuite/binutils-all/readelf.h.thin: New file.
binutils/ChangeLog
binutils/readelf.c
binutils/testsuite/binutils-all/readelf.exp
binutils/testsuite/binutils-all/readelf.h.thin [new file with mode: 0644]