diff options
author | Alan Modra <amodra@gmail.com> | 2022-03-01 21:54:34 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-03-01 21:56:04 +1030 |
commit | 581c5ba435538c23fe63d6884ff885b7ef333568 (patch) | |
tree | 17d094235d1815fce267abc0a57ef4dbcc8ff6d0 /bfd | |
parent | 95e96e052ab2d7781a9dc7267123f49c7b1dd671 (diff) | |
download | gdb-581c5ba435538c23fe63d6884ff885b7ef333568.zip gdb-581c5ba435538c23fe63d6884ff885b7ef333568.tar.gz gdb-581c5ba435538c23fe63d6884ff885b7ef333568.tar.bz2 |
Revert "Check thin archive element file size against archive header"
This reverts commit 48e3e6aec8a4f37d00ea6c0da3ab45e76490e3db.
PR 28929
* archive.c (_bfd_get_elt_at_filepos): Don't check thin archive
element file size.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/archive.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/bfd/archive.c b/bfd/archive.c index ffaec7e..9ad61ad 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -717,17 +717,7 @@ _bfd_get_elt_at_filepos (bfd *archive, file_ptr filepos, open the external file as a bfd. */ bfd_set_error (bfd_error_no_error); n_bfd = open_nested_file (filename, archive); - if (n_bfd != NULL) - { - ufile_ptr size = bfd_get_size (n_bfd); - if (size != 0 && size != new_areldata->parsed_size) - { - bfd_set_error (bfd_error_malformed_archive); - bfd_close (n_bfd); - n_bfd = NULL; - } - } - else + if (n_bfd == NULL) { switch (bfd_get_error ()) { |