debug_link duplicate file size checks
authorAlan Modra <amodra@gmail.com>
Tue, 21 Feb 2023 21:45:26 +0000 (08:15 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 21 Feb 2023 22:48:25 +0000 (09:18 +1030)
commitee590ebd33ad325dcef4e3656919ef5f9e04e52a
treee162dbb74e8fd602dc3531aeb1f056fe7fe63780
parent3592bebbbf6b27732effc49bd6a73b0bd5af4df4
debug_link duplicate file size checks

bfd_malloc_and_get_section does these checks.

* opncls.c (bfd_get_debug_link_info_1): Don't check section
size against file size.
(bfd_get_alt_debug_link_info): Likewise.
bfd/opncls.c