aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-cris.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf32-cris.c')
-rw-r--r--bfd/elf32-cris.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c
index f85ba0d..5f0eca9 100644
--- a/bfd/elf32-cris.c
+++ b/bfd/elf32-cris.c
@@ -884,7 +884,7 @@ elf_cris_link_hash_table_create (bfd *abfd)
struct elf_cris_link_hash_table *ret;
bfd_size_type amt = sizeof (struct elf_cris_link_hash_table);
- ret = ((struct elf_cris_link_hash_table *) bfd_malloc (amt));
+ ret = ((struct elf_cris_link_hash_table *) bfd_zmalloc (amt));
if (ret == (struct elf_cris_link_hash_table *) NULL)
return NULL;
@@ -901,9 +901,6 @@ elf_cris_link_hash_table_create (bfd *abfd)
are used for run-time symbol evaluation. */
ret->next_gotplt_entry = 12;
- /* We haven't seen any R_CRIS_nn_GOT_TPREL initially. */
- ret->dtpmod_refcount = 0;
-
return &ret->root.root;
}