bfd: Always check sections with the corrupt size
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 4 Nov 2021 13:27:16 +0000 (06:27 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 4 Nov 2021 13:57:32 +0000 (06:57 -0700)
commite0f7ea91436dd308a094c4c101fd4169e8245a91
tree9ba4e0886bf3f47f8e982670557d62b9647c5686
parentedc77c591add0a9c7740a9ed9f7e40358bf65dbf
bfd: Always check sections with the corrupt size

Always check sections with the corrupt size for non-MMO files.  Skip MMO
files for compress_status == COMPRESS_SECTION_NONE since MMO has special
handling for COMPRESS_SECTION_NONE.

PR binutils/28530
* compress.c (bfd_get_full_section_contents): Always check
sections with the corrupt size.
bfd/compress.c