diff options
author | Claudiu Zissulescu <claziss@gmail.com> | 2018-11-09 13:14:00 +0200 |
---|---|---|
committer | Claudiu Zissulescu <claziss@gmail.com> | 2018-11-09 13:20:27 +0200 |
commit | 0f2064107ba373ddcffb30afc55ac08b40c0585e (patch) | |
tree | 3ce35bf992fbd4a4292520c42b74aeb1e23c146b /bfd/elf32-arc.c | |
parent | 73af69e74974eaa155eec89867e3ccc77ab39f6d (diff) | |
download | gdb-0f2064107ba373ddcffb30afc55ac08b40c0585e.zip gdb-0f2064107ba373ddcffb30afc55ac08b40c0585e.tar.gz gdb-0f2064107ba373ddcffb30afc55ac08b40c0585e.tar.bz2 |
[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.
Diffstat (limited to 'bfd/elf32-arc.c')
-rw-r--r-- | bfd/elf32-arc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index 30f47a5..668642c 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -1740,7 +1740,7 @@ elf_arc_relocate_section (bfd * output_bfd, reloc_data.should_relocate = TRUE; struct got_entry **list - = get_got_entry_list_for_symbol (output_bfd, r_symndx, h); + = get_got_entry_list_for_symbol (input_bfd, r_symndx, h); reloc_data.got_offset_value = relocate_fix_got_relocs_for_got_info (list, |