asan: out of memory in som_set_reloc_info
authorAlan Modra <amodra@gmail.com>
Tue, 24 Oct 2023 04:52:00 +0000 (15:22 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 25 Oct 2023 00:42:11 +0000 (11:12 +1030)
commit220be060180d14a0512bfb39b22341a7368822ae
tree237ed8b728c5729eced0bb4b66a5839cf040b841
parente3afa685584773d3ae85f33dc9e6e42ecf604a53
asan: out of memory in som_set_reloc_info

Sections without SEC_HAS_CONTENTS avoid the file size checks, and of
course it doesn't make sense to read such as the contents are all
zero.

* som.c (som_set_reloc_info): Don't read sections without contents.
bfd/som.c