loongarch readelf support
authorAlan Modra <amodra@gmail.com>
Thu, 1 Jun 2023 14:01:47 +0000 (23:31 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 2 Jun 2023 00:11:49 +0000 (09:41 +0930)
commit74a965d8e09217f3d8f8295c9126b77cdd62b798
treefc28edb8fc77b293015a3ca3792dda85421dfa85
parent56e4ccc924d47c30e7446efe771397d2de141762
loongarch readelf support

This fixes two buffer overflows found by fuzzers.

* readelf.c (target_specific_reloc_handling): Sanity check
loongarch reloc symbol index.  Don't apply reloc after errors.
Reduce translation work of "invalid symbol index" error message.
binutils/readelf.c