Re: objdump read_section_stabs
authorAlan Modra <amodra@gmail.com>
Tue, 21 Feb 2023 22:34:57 +0000 (09:04 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 21 Feb 2023 22:48:25 +0000 (09:18 +1030)
commit45b36294d60e3c72c32f8003b82ee852672f1948
tree277ad967aabc5d85a64a534524e11892cde7fa42
parentee590ebd33ad325dcef4e3656919ef5f9e04e52a
Re: objdump read_section_stabs

Commit f9c36cc99518 changed (and renamed) read_section_stabs with one
difference in overall behaviour.  Previously read_section_stabs would
return a NULL for an empty section, which was then treated the same as
a missing section.  Now an empty section is recognized and dumped.
This leads to NULL stabp and stabs_end in print_section_stabs.  Since
stabs_end - STABSIZE is then a pointer to a very large address, the
test "stabp < stabs_end - STABSIZE" succeeds.

* objdump.c (print_section_stabs): Correct STABSIZE comparison.
binutils/objdump.c