PR22166, SHT_GNU_verneed memory allocation
authorAlan Modra <amodra@gmail.com>
Sun, 24 Sep 2017 05:04:57 +0000 (14:34 +0930)
committerAlan Modra <amodra@gmail.com>
Sun, 24 Sep 2017 05:04:57 +0000 (14:34 +0930)
commitbd61e135492ecf624880e6b78e5fcde3c9716df6
treee7207bc367264cf123f5aabffd4d8b6c63f14556
parent8d296e2d4d8ed6ffbe29bb8cc6548a3871de6ad1
PR22166, SHT_GNU_verneed memory allocation

The sanity check covers the previous minimim size, plus that the size
is at least enough for sh_info verneed entries.

Also, since we write all verneed fields or exit with an error, there
isn't any need to zero the memory allocated for verneed entries.

PR 22166
* elf.c (_bfd_elf_slurp_version_tables): Test sh_info on
SHT_GNU_verneed section for sanity.  Don't zalloc memory for
verref.
bfd/ChangeLog
bfd/elf.c
This page took 0.03123 seconds and 4 git commands to generate.