* elf.c (_bfd_elf_link_hash_table_init): Make sure

can_refcount is properly extended to the type of
init_refcount.
This commit is contained in:
Alexandre Oliva 2002-11-20 18:17:04 +00:00
parent a1358604f1
commit 963f13ecfe
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-11-20 Alexandre Oliva <aoliva@redhat.com>
* elf.c (_bfd_elf_link_hash_table_init): Make sure
can_refcount is properly extended to the type of
init_refcount.
2002-11-19 Alexandre Oliva <aoliva@redhat.com>
* elfxx-mips.c (MIPS_RELOC_RELA_P): New macro.

View File

@ -1503,7 +1503,10 @@ _bfd_elf_link_hash_table_init (table, abfd, newfunc)
table->dynamic_sections_created = false;
table->dynobj = NULL;
table->init_refcount = get_elf_backend_data (abfd)->can_refcount - 1;
/* Make sure can_refcount is extended to the width and signedness of
init_refcount before we subtract one from it. */
table->init_refcount = get_elf_backend_data (abfd)->can_refcount;
--table->init_refcount;
/* The first dynamic symbol is a dummy. */
table->dynsymcount = 1;
table->dynstr = NULL;