elf: Check if the first symbol version is base version
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 14 Jun 2018 12:37:19 +0000 (05:37 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 14 Jun 2018 12:37:33 +0000 (05:37 -0700)
commit1f6f5dba57ffbc073b1ead89647288feaaed2caf
treeabea3a9c90a1731dbd1cc39843491f6d5e2d7995
parent7b045207d1b8980add1c87b643504e3ef987e7a2
elf: Check if the first symbol version is base version

Check VER_FLG_BASE instead of assuming that the first symbol version is
base version.

bfd/

PR binutils/23267
* elf.c (_bfd_elf_get_symbol_version_string): Check if the first
symbol version is base version.

binutils/

PR binutils/23267
* readelf.c (get_symbol_version_string): Check if the first
symbol version is base version.
bfd/ChangeLog
bfd/elf.c
binutils/ChangeLog
binutils/readelf.c