Prevent illegal memory access when indexing into the sym_hashes array of the elf bfd cookie structure. PR 32636