aboutsummaryrefslogtreecommitdiff
path: root/bfd/arc-got.h
diff options
context:
space:
mode:
authorCupertino Miranda <cmiranda@synopsys.com>2018-03-02 17:16:21 +0100
committerCupertino Miranda <cmiranda@synopsys.com>2018-10-01 12:42:11 +0100
commit854b8506815f7786b3c82f7824557e7f32a64ac5 (patch)
tree90af1eef37618030051dfff4710747b212cdf31d /bfd/arc-got.h
parent12b164e9a96f75ffd030d04a7633dfbb64862806 (diff)
downloadgdb-854b8506815f7786b3c82f7824557e7f32a64ac5.zip
gdb-854b8506815f7786b3c82f7824557e7f32a64ac5.tar.gz
gdb-854b8506815f7786b3c82f7824557e7f32a64ac5.tar.bz2
[ARC] Refactored location where GOT information is collected.
Change location where GOT information is collected for ARC target, avoiding posible use conflicts of the previous .got field in the symbols hash_entry. bfd/ 2018-03-01 Cupertino Miranda <cmiranda@synopsys.com> * arc-got.h (get_got_entry_list_for_symbol): Changed. * ef32-arc.c (struct elf_arc_link_hash_entry): Moved and changed. (elf_arc_link_hash_newfunc): Changed. (arc_elf_link_hash_table_create): Removed old initializations. (elf_arc_relocate_section, elf_arc_finish_dynamic_symbol): Changed.
Diffstat (limited to 'bfd/arc-got.h')
-rw-r--r--bfd/arc-got.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/arc-got.h b/bfd/arc-got.h
index a86061b..81ce88f 100644
--- a/bfd/arc-got.h
+++ b/bfd/arc-got.h
@@ -156,9 +156,11 @@ get_got_entry_list_for_symbol (bfd *abfd,
unsigned long r_symndx,
struct elf_link_hash_entry *h)
{
- if (h != NULL)
+ struct elf_arc_link_hash_entry *h1 =
+ ((struct elf_arc_link_hash_entry *) h);
+ if (h1 != NULL)
{
- return &h->got.glist;
+ return &h1->got_ents;
}
else
{