projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95e96e0
)
Revert "Check thin archive element file size against archive header"
author
Alan Modra
<amodra@gmail.com>
Tue, 1 Mar 2022 11:24:34 +0000
(21:54 +1030)
committer
Alan Modra
<amodra@gmail.com>
Tue, 1 Mar 2022 11:26:04 +0000
(21:56 +1030)
This reverts commit
48e3e6aec8a4f37d00ea6c0da3ab45e76490e3db
.
PR 28929
* archive.c (_bfd_get_elt_at_filepos): Don't check thin archive
element file size.
bfd/archive.c
patch
|
blob
|
history
diff --git
a/bfd/archive.c
b/bfd/archive.c
index ffaec7e22310ea6067c58e2d92cdf340d6b7e93a..9ad61adc6159a2731a0443353f393baeea48bf5d 100644
(file)
--- 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 ())
{