Home | History | Annotate | Download | only in bfd

Lines Matching defs:module

131 /* VMS module header.  */
149 /* VMS End-Of-Module records (EOM/EEOM). */
229 struct module
232 struct module *next;
234 /* The module name. */
252 /* A list of the functions found in this module. */
258 /* An array of the files making up this module. */
305 struct module *modules; /* list of all compilation units */
873 /* Module header. */
2336 (*_bfd_error_handler) (_("Object module NOT error-free !\n"));
2547 /* Assume it's a module and adjust record pointer if necessary. */
2550 /* But is it really a module? */
2557 vms_debug2 ((2, "file type is module\n"));
2609 /* Create module name from filename. */
2612 char *module = vms_get_module_name (bfd_get_filename (abfd), TRUE);
2613 _bfd_vms_output_counted (recwr, module);
2614 free (module);
2932 char *module;
2935 /* Set module name. */
2936 module = vms_get_module_name (bfd_get_filename (abfd), TRUE);
2937 len = strlen (module);
2941 memcpy (eihi->imgnam + 1, module, len);
2942 free (module);
3982 /* Build a new module for the specified BFD. */
3984 static struct module *
3987 struct module *module
3988 module *) bfd_zalloc (abfd, sizeof (struct module));
3989 module->file_table_count = 16; /* Arbitrary. */
3990 module->file_table
3991 = bfd_malloc (module->file_table_count * sizeof (struct fileinfo));
3992 return module;
3995 /* Parse debug info for a module and internalize it. */
3998 parse_module (bfd *abfd, struct module *module, unsigned char *ptr,
4011 module->srec_table = curr_srec;
4014 module->line_table = curr_line;
4030 module->name
4038 vms_debug2 ((3, "module: %s\n", module->name));
4050 funcinfo->next = module->func_table;
4051 module->func_table = funcinfo;
4058 module->func_table->high = module->func_table->low
4061 if (module->func_table->high > module->high)
4062 module->high = module->func_table->high;
4102 while (fileid >= module->file_table_count)
4104 module->file_table_count *= 2;
4105 module->file_table
4106 = bfd_realloc (module->file_table,
4107 module->file_table_count
4111 module->file_table [fileid].name = filename;
4112 module->file_table [fileid].srec = 1;
4115 fileid, module->file_table [fileid].name));
4159 curr_srec->srec = module->file_table[data].srec;
4181 module->file_table[curr_srec->sfile].srec = data;
4189 module->file_table[curr_srec->sfile].srec = data;
4427 /* Advertise that this module has been parsed. This is needed
4428 because parsing can be either performed at module creation
4430 SET_MODULE_PARSED (module);
4435 static struct module *
4438 struct module *module, *list = NULL;
4446 of every module from the section contents. */
4463 /* Each header declares a module with its start offset and size
4471 vms_debug2 ((3, "module: modbeg = %d, size = %d, count = %d\n",
4474 /* We create a 'module' structure for each program section since
4475 we only support contiguous addresses in a 'module' structure.
4483 module = new_module (abfd);
4484 module->modbeg = modbeg;
4485 module->size = msize;
4486 module->low = start;
4487 module->high = start + length;
4488 module->next = list;
4489 list = module;
4500 the module right now in order to compute its start address and
4507 module = new_module (abfd);
4508 parse_module (abfd, module, PRIV (dst_section)->contents, -1);
4509 list = module;
4516 to the wanted location in the specified module. */
4519 module_find_nearest_line (bfd *abfd, struct module *module, bfd_vma addr,
4528 /* Parse this module if that was not done at module creation. */
4529 if (! IS_MODULE_PARSED (module))
4531 unsigned int size = module->size;
4532 unsigned int modbeg = PRIV (dst_section)->filepos + module->modbeg;
4533 unsigned char *buffer = (unsigned char *) bfd_malloc (module->size);
4542 parse_module (abfd, module, buffer, size);
4547 for (funcinfo = module->func_table; funcinfo; funcinfo = funcinfo->next)
4556 for (lineinfo = module->line_table; lineinfo; lineinfo = lineinfo->next)
4559 for (srecinfo = module->srec_table; srecinfo; srecinfo = srecinfo->next)
4564 *file = module->file_table[srecinfo->sfile].name;
4569 *file = module->name;
4595 struct module *module;
4610 /* Create the module list - if not already done. */
4618 for (module = PRIV (modules); module; module = module->next)
4619 if (addr >= module->low && addr <= module->high)
4620 return module_find_nearest_line (abfd, module, addr, file, func, line);
5564 fprintf (file, _("Module header\n"));
5569 fprintf (file, _(" module name : %.*s\n"), name[0], name + 1);
5571 fprintf (file, _(" module version : %.*s\n"), name[0], name + 1);
5975 fprintf (file, _("STA_MOD (stack module)\n"));
6824 fprintf (file, _(" module name: %.*s\n"),
7090 fprintf (file, _(" module name: %.*s\n"),
7459 fprintf (file, _(" debug module table : vbn: %u, size: %u\n"),
7574 fprintf (file, _("Debug module table:\n"));
7588 _(" module offset: 0x%08x, size: 0x%08x, (%u psects)\n"),
8801 /* For each object file (ie for each module). */
8808 /* Skip this module if it has no DST. */