cris: Don't hide symbol which was forced to be dynamic
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 14 Oct 2017 18:23:45 +0000 (11:23 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 14 Oct 2017 18:24:29 +0000 (11:24 -0700)
commit5d84490bf6ac806c15781a833f0e1e7a191f334f
tree6390dbb4e4ad70614d8729b1c82ffa1f2a21393f
parente01c16a83893b03433c8edf4ccae536d9b9f4831
cris: Don't hide symbol which was forced to be dynamic

h->root.dynamic is set on symbols which were forced to be dynamic due
to a version script file.  Don't remove such symbols from dynamic symbol
table.  This fixes:

FAIL: ld-elf/pr21384

PR ld/21384
* elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
hide symbol which was forced to be dynamic.
bfd/ChangeLog
bfd/elf32-cris.c