[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/24951] New: Thin archive doesn't work with compressed sect
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug binutils/24951] New: Thin archive doesn't work with compressed section |
Date: |
Thu, 29 Aug 2019 19:59:32 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=24951
Bug ID: 24951
Summary: Thin archive doesn't work with compressed section
Product: binutils
Version: 2.33 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
_bfd_get_elt_at_filepos failed to copy BFD_COMPRESS, BFD_DECOMPRESS and
BFD_COMPRESS_GABI flags for thin archive. This patch fixes it:
diff --git a/bfd/archive.c b/bfd/archive.c
index 3baf83d40c..690718e949 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -692,6 +692,13 @@ _bfd_get_elt_at_filepos (bfd *archive, file_ptr filepos)
return NULL;
}
n_bfd->proxy_origin = bfd_tell (archive);
+
+ /* Copy BFD_COMPRESS, BFD_DECOMPRESS and BFD_COMPRESS_GABI
+ flags. */
+ n_bfd->flags |= archive->flags & (BFD_COMPRESS
+ | BFD_DECOMPRESS
+ | BFD_COMPRESS_GABI);
+
return n_bfd;
}
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/24951] New: Thin archive doesn't work with compressed section,
hjl.tools at gmail dot com <=