objdump: report no section contents
authorAlan Modra <amodra@gmail.com>
Thu, 9 Mar 2023 12:09:30 +0000 (22:39 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 9 Mar 2023 12:18:06 +0000 (22:48 +1030)
commit093b56776fcf31ecc9342382341c1455fd397b16
treeab60881ddd7291ec1edea59fae54ece9ddd829a8
parent2dc2dfa7d7a53aae58da4a51a77e9ad996cd2937
objdump: report no section contents

objdump's read_section is never used for bss-style sections, so to
plug a hole that fuzzers have found, exclude sections without
SEC_HAS_CONTENTS.

* objdump.c (read_section): Report and return an error on
a no contents section.
binutils/objdump.c