diff options
Diffstat (limited to 'bfd/plugin.c')
-rw-r--r-- | bfd/plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/plugin.c b/bfd/plugin.c index c81a267..559fcd4 100644 --- a/bfd/plugin.c +++ b/bfd/plugin.c @@ -167,7 +167,7 @@ try_claim (bfd *abfd) file.name = abfd->filename; - if (abfd->my_archive) + if (abfd->my_archive && !bfd_is_thin_archive (abfd->my_archive)) { iobfd = abfd->my_archive; file.offset = abfd->origin; @@ -185,7 +185,7 @@ try_claim (bfd *abfd) file.fd = fileno ((FILE *) iobfd->iostream); - if (!abfd->my_archive) + if (!abfd->my_archive || bfd_is_thin_archive (abfd->my_archive)) { struct stat stat_buf; if (fstat (file.fd, &stat_buf)) |