[ARC] Fix local got entry list.
authorClaudiu Zissulescu <claziss@gmail.com>
Fri, 9 Nov 2018 11:14:00 +0000 (13:14 +0200)
committerClaudiu Zissulescu <claziss@gmail.com>
Fri, 9 Nov 2018 11:20:27 +0000 (13:20 +0200)
commit0f2064107ba373ddcffb30afc55ac08b40c0585e
tree3ce35bf992fbd4a4292520c42b74aeb1e23c146b
parent73af69e74974eaa155eec89867e3ccc77ab39f6d
[ARC] Fix local got entry list.

Fix a memory leak appearing when the local got entry list was constructed.

bfd/
xxxx-xx-xx  Claudiu Zissulescu  <claziss@synopsys.com>

* arc-got.h (arc_get_local_got_ents): Revamp it; use
elf_local_got_ents to store the local got list.
(get_got_entry_list_for_symbo): Restructure it.
* elf32-arc.c (elf_arc_relocate_section): Correct the call to
get_got_entry_list_for_symbol.
bfd/ChangeLog
bfd/arc-got.h
bfd/elf32-arc.c