[ARC] Dynamic relocs verification for dynindx == -1.
authorClaudiu Zissulescu <claziss@synopsys.com>
Tue, 5 Apr 2016 14:34:12 +0000 (16:34 +0200)
committerClaudiu Zissulescu <claziss@synopsys.com>
Tue, 5 Apr 2016 14:47:58 +0000 (16:47 +0200)
commit94e5c97160abbcf2274f8d58dc2900bc85c1c384
tree06b7c5f518759bb7aac249098aee961121032ce7
parent6ec1f28285f0a24587f7b5935e6d3fd4011fbb01
[ARC] Dynamic relocs verification for dynindx == -1.

bfd/
2016-04-05  Cupertino Miranda  <cmiranda@synopsys.com>

* elf32-arc.c (name_for_global_symbol): Added assert to check for
symbol index.
(elf_arc_relocate_section): Added and changed asserts, validating
the synamic symbol index.
(elf_arc_finish_dynamic_symbol): Do not fill the dynamic
relocation if symbol has dynindx set to -1.
bfd/ChangeLog
bfd/elf32-arc.c