Always count the NULL entry in dynamic symbol table
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 26 Apr 2016 10:53:07 +0000 (03:53 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 26 Apr 2016 10:53:23 +0000 (03:53 -0700)
commitd5486c43728b4fa17c111a301c30a1e072eaec6a
tree96cb133ef999247bd33465209ac67f2e90acaeed
parent3283f4fb4c772f21d2c5f0091569ffcfc7eb6dec
Always count the NULL entry in dynamic symbol table

There is an unused NULL entry at the head of dynamic symbol table which
we must account for in our count even if the table is empty or unused
since it is intended for the mandatory DT_SYMTAB tag (.dynsym section)
in .dynamic section.

* elf-bfd.h (elf_link_hash_table): Update comments for
dynsymcount.
* elflink.c (_bfd_elf_link_renumber_dynsyms): Always count for
the unused NULL entry at the head of dynamic symbol table.
(bfd_elf_size_dynsym_hash_dynstr): Remove dynsymcount != 0
checks.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elflink.c
This page took 0.025599 seconds and 4 git commands to generate.