FreeBSD/contrib/binutils/ld/ldmain.c
/* Record a symbol to be wrapped, from the --wrap option.  */
Record a symbol to be wrapped, from the --wrap option.
Record a symbol to be wrapped from the -- wrap option .
void
add_wrap (const char *name)
{
  if (link_info.wrap_hash == NULL)
    {
      link_info.wrap_hash = xmalloc (sizeof (struct bfd_hash_table));
      if (!bfd_hash_table_init_n (link_info.wrap_hash,
				  bfd_hash_newfunc,
				  sizeof (struct bfd_hash_entry),
				  61))
	einfo (_("%P%F: bfd_hash_table_init failed: %E\n"));
    }
  if (bfd_hash_lookup (link_info.wrap_hash, name, TRUE, TRUE) == NULL)
    einfo (_("%P%F: bfd_hash_lookup failed: %E\n"));
}
void add_wrap ( const char * name ) { if ( link_info . wrap_hash == NULL ) { link_info . wrap_hash = xmalloc ( sizeof ( struct bfd_hash_table ) ) ; if ( ! bfd_hash_table_init_n ( link_info . wrap_hash , bfd_hash_newfunc , sizeof ( struct bfd_hash_entry ) , 61 ) ) einfo ( _ ( " \n " ) ) ; } if ( bfd_hash_lookup ( link_info . wrap_hash , name , TRUE , TRUE ) == NULL ) einfo ( _ ( " \n " ) ) ; }
Record a symbol to be wrapped, from the --wrap option.
Record a symbol to be wrapped from the -- wrap option .