Lines Matching defs:objfile

158 					   struct objfile *);
162 static void enter_linenos (long, int, int, struct objfile *);
183 static void coff_symtab_read (long, unsigned int, struct objfile *);
247 static int cs_to_section (struct coff_symbol *, struct objfile *);
265 cs_to_section (struct coff_symbol *cs, struct objfile *objfile)
269 int off = SECT_OFF_TEXT (objfile);
273 bfd_map_over_sections (objfile->obfd, find_targ_sec, &args);
278 off = SECT_OFF_TEXT (objfile);
280 off = SECT_OFF_DATA (objfile);
303 addr = bfd_get_section_vma (objfile->obfd, sect);
405 coff_end_symtab (struct objfile *objfile)
411 symtab = end_symtab (current_source_end_addr, objfile, SECT_OFF_TEXT (objfile));
423 enum minimal_symbol_type type, struct objfile *objfile)
429 prim_record_minimal_symbol (name, address, type, objfile);
435 It is passed a struct objfile which contains, among other things,
447 coff_symfile_init (struct objfile *objfile)
450 objfile->sym_stab_info = (struct dbx_symfile_info *)
451 xmmalloc (objfile->md, sizeof (struct dbx_symfile_info));
453 memset (objfile->sym_stab_info, 0,
457 objfile->sym_private = xmmalloc (objfile->md,
460 memset (objfile->sym_private, 0, sizeof (struct coff_symfile_info));
465 objfile->flags |= OBJF_REORDERED;
467 init_entry_point_info (objfile);
511 coff_symfile_read (struct objfile *objfile, int mainline)
515 bfd *abfd = objfile->obfd;
527 info = (struct coff_symfile_info *) objfile->sym_private;
528 dbxinfo = objfile->sym_stab_info;
560 strncmp (bfd_get_target (objfile->obfd), "pe", 2) == 0
561 || strncmp (bfd_get_target (objfile->obfd), "epoc-pe", 7) == 0;
607 coff_symtab_read ((long) symtab_offset, num_symbols, objfile);
610 minimal symbols for this objfile. */
612 install_minimal_symbols (objfile);
635 coffstab_build_psymtabs (objfile,
644 dwarf2_build_psymtabs (objfile, mainline);
651 coff_new_init (struct objfile *ignore)
656 objfile. I.E, we are in the process of discarding all symbol information
657 for an objfile, freeing up all memory held for it, and unlinking the
658 objfile struct from the global list of known objfiles. */
661 coff_symfile_finish (struct objfile *objfile)
663 if (objfile->sym_private != NULL)
665 xmfree (objfile->md, objfile->sym_private);
681 struct objfile *objfile)
720 bfd_seek (objfile->obfd, 0, 0);
723 val = bfd_seek (objfile->obfd, (long) symtab_offset, 0);
725 perror_with_name (objfile->name);
727 current_objfile = objfile;
728 nlist_bfd_global = objfile->obfd;
752 coff_end_symtab (objfile);
768 tmpaddr = cs->c_value + ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
769 record_minimal_symbol (cs->c_name, tmpaddr, mst_text, objfile);
805 coff_end_symtab (objfile);
834 cs->c_value + ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)),
891 sec = cs_to_section (cs, objfile);
896 sec = cs_to_section (cs, objfile);
903 tmpaddr += ANOFFSET (objfile->section_offsets, sec);
905 if (sec == SECT_OFF_TEXT (objfile))
913 else if (sec == SECT_OFF_DATA (objfile))
919 else if (sec == SECT_OFF_BSS (objfile))
934 sec, NULL, objfile);
942 (cs, &main_aux, objfile);
970 process_coff_symbol (&fcn_cs_saved, &fcn_aux_saved, objfile);
1021 objfile);
1035 + ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)),
1039 + ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)),
1041 objfile
1051 tmpaddr += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
1075 cs->c_value + ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
1078 new->start_addr, tmpaddr, objfile);
1086 process_coff_symbol (cs, &main_aux, objfile);
1095 read_pe_exported_syms (objfile);
1099 coff_end_symtab (objfile);
1103 ALL_OBJFILE_SYMTABS (objfile, s)
1349 int last_line, struct objfile *objfile)
1385 + ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)));
1480 struct objfile *objfile)
1483 = (struct symbol *) obstack_alloc (&objfile->objfile_obstack,
1489 name = EXTERNAL_NAME (name, objfile->obfd);
1491 SYMBOL_SET_NAMES (sym, name, strlen (name), objfile);
1496 SYMBOL_SECTION (sym) = cs_to_section (cs, objfile);
1500 SYMBOL_VALUE (sym) += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
1530 SYMBOL_VALUE_ADDRESS (sym) += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
1539 SYMBOL_VALUE_ADDRESS (sym) += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));