FreeBSD/contrib/binutils/bfd/elflink.c
/* This function is used to renumber the dynamic symbols, if some of
   them are removed because they are marked as local.  This is called
   via elf_link_hash_traverse.  */
This function is used to renumber the dynamic symbols, if some of
them are removed because they are marked as local.  This is called
via elf_link_hash_traverse.
This function is used to renumber the dynamic symbols if some of them are removed because they are marked as local . This is called via elf_link_hash_traverse .
static bfd_boolean
elf_link_renumber_hash_table_dynsyms (struct elf_link_hash_entry *h,
				      void *data)
{
  size_t *count = data;
  if (h->root.type == bfd_link_hash_warning)
    h = (struct elf_link_hash_entry *) h->root.u.i.link;
  if (h->forced_local)
    return TRUE;
  if (h->dynindx != -1)
    h->dynindx = ++(*count);
  return TRUE;
}
static bfd_boolean elf_link_renumber_hash_table_dynsyms ( struct elf_link_hash_entry * h , void * data ) { size_t * count = data ; if ( h -> root . type == bfd_link_hash_warning ) h = ( struct elf_link_hash_entry * ) h -> root . u . i . link ; if ( h -> forced_local ) return TRUE ; if ( h -> dynindx != -1 ) h -> dynindx = ++ ( * count ) ; return TRUE ; }
This function is used to renumber the dynamic symbols, if some of
them are removed because they are marked as local.
This function is used to renumber the dynamic symbols if some of them are removed because they are marked as local .