FreeBSD/contrib/binutils/binutils/readelf.c
/* Request a dump by section name.  */
Request a dump by section name.
Request a dump by section name .
static void
request_dump_byname (const char *section, int type)
{
  struct dump_list_entry *new_request;
  new_request = malloc (sizeof (struct dump_list_entry));
  if (!new_request)
    error (_("Out of memory allocating dump request table.\n"));
  new_request->name = strdup (section);
  if (!new_request->name)
    error (_("Out of memory allocating dump request table.\n"));
  new_request->type = type;
  new_request->next = dump_sects_byname;
  dump_sects_byname = new_request;
}
static void request_dump_byname ( const char * section , int type ) { struct dump_list_entry * new_request ; new_request = malloc ( sizeof ( struct dump_list_entry ) ) ; if ( ! new_request ) error ( _ ( " \n " ) ) ; new_request -> name = strdup ( section ) ; if ( ! new_request -> name ) error ( _ ( " \n " ) ) ; new_request -> type = type ; new_request -> next = dump_sects_byname ; dump_sects_byname = new_request ; }
Request a dump by section name.
Request a dump by section name .