Elf_GnuHash_Impl has the following method:
ArrayRef<Elf_Word> values(unsigned DynamicSymCount) const { return ArrayRef<Elf_Word>(buckets().end(), DynamicSymCount - symndx); }
When DynamicSymCount is less than symndx we return an array with the huge broken size.
This patch fixes the issue ans adds an assert. This assert helped to fix an issue
in one of the test cases.
The printGnuHashHistogram method also needs to be fixed. I am planning to fix it
independently after we land the D81928, which will allow to reuse the code that validates
the GNU hash table before the dumping.
Depends on: D81928
whilst you're modifying this line: "described with" -> "described by"