FreeBSD/contrib/binutils/binutils/readelf.c
/* Set DUMP_SECTS for all sections where dumps were requested
   based on section name.  */
Set DUMP_SECTS for all sections where dumps were requested
based on section name.
Set DUMP_SECTS for all sections where dumps were requested based on section name .
static void
initialise_dumps_byname (void)
{
  struct dump_list_entry *cur;
  for (cur = dump_sects_byname; cur; cur = cur->next)
    {
      unsigned int i;
      int any;
      for (i = 0, any = 0; i < elf_header.e_shnum; i++)
	if (streq (SECTION_NAME (section_headers + i), cur->name))
	  {
	    request_dump (i, cur->type);
	    any = 1;
	  }
      if (!any)
	warn (_("Section '%s' was not dumped because it does not exist!\n"),
	      cur->name);
    }
}
static void initialise_dumps_byname ( void ) { struct dump_list_entry * cur ; for ( cur = dump_sects_byname ; cur ; cur = cur -> next ) { unsigned int i ; int any ; for ( i = 0 , any = 0 ; i < elf_header . e_shnum ; i ++ ) if ( streq ( SECTION_NAME ( section_headers + i ) , cur -> name ) ) { request_dump ( i , cur -> type ) ; any = 1 ; } if ( ! any ) warn ( _ ( " \n " ) , cur -> name ) ; } }
Set DUMP_SECTS for all sections where dumps were requested
based on section name.
Set DUMP_SECTS for all sections where dumps were requested based on section name .