Lines Matching refs: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 *);
246 static int cs_to_section (struct coff_symbol *, struct objfile *);
264 cs_to_section (struct coff_symbol *cs, struct objfile *objfile) in cs_to_section() argument
268 int off = SECT_OFF_TEXT (objfile); in cs_to_section()
272 bfd_map_over_sections (objfile->obfd, find_targ_sec, &args); in cs_to_section()
277 off = SECT_OFF_TEXT (objfile); in cs_to_section()
279 off = SECT_OFF_DATA (objfile); in cs_to_section()
302 addr = bfd_get_section_vma (objfile->obfd, sect); in cs_section_address()
396 coff_end_symtab (struct objfile *objfile) in coff_end_symtab() argument
402 symtab = end_symtab (current_source_end_addr, objfile, SECT_OFF_TEXT (objfile)); in coff_end_symtab()
413 enum minimal_symbol_type type, struct objfile *objfile) in record_minimal_symbol() argument
419 prim_record_minimal_symbol (name, address, type, objfile); in record_minimal_symbol()
436 coff_symfile_init (struct objfile *objfile) in coff_symfile_init() argument
439 objfile->sym_stab_info = (struct dbx_symfile_info *) in coff_symfile_init()
442 memset (objfile->sym_stab_info, 0, in coff_symfile_init()
446 objfile->sym_private = xmalloc (sizeof (struct coff_symfile_info)); in coff_symfile_init()
448 memset (objfile->sym_private, 0, sizeof (struct coff_symfile_info)); in coff_symfile_init()
453 objfile->flags |= OBJF_REORDERED; in coff_symfile_init()
455 init_entry_point_info (objfile); in coff_symfile_init()
499 coff_symfile_read (struct objfile *objfile, int mainline) in coff_symfile_read() argument
503 bfd *abfd = objfile->obfd; in coff_symfile_read()
515 info = (struct coff_symfile_info *) objfile->sym_private; in coff_symfile_read()
516 dbxinfo = objfile->sym_stab_info; in coff_symfile_read()
548 strncmp (bfd_get_target (objfile->obfd), "pe", 2) == 0 in coff_symfile_read()
549 || strncmp (bfd_get_target (objfile->obfd), "epoc-pe", 7) == 0; in coff_symfile_read()
595 coff_symtab_read ((long) symtab_offset, num_symbols, objfile); in coff_symfile_read()
600 install_minimal_symbols (objfile); in coff_symfile_read()
610 init_psymbol_list (objfile, 0); in coff_symfile_read()
632 coffstab_build_psymtabs (objfile, in coff_symfile_read()
638 if (dwarf2_has_info (objfile)) in coff_symfile_read()
641 dwarf2_build_psymtabs (objfile, mainline); in coff_symfile_read()
644 dwarf2_build_frame_info (objfile); in coff_symfile_read()
650 coff_new_init (struct objfile *ignore) in coff_new_init()
660 coff_symfile_finish (struct objfile *objfile) in coff_symfile_finish() argument
662 if (objfile->sym_private != NULL) in coff_symfile_finish()
664 xfree (objfile->sym_private); in coff_symfile_finish()
679 struct objfile *objfile) in coff_symtab_read() argument
718 bfd_seek (objfile->obfd, 0, 0); in coff_symtab_read()
721 val = bfd_seek (objfile->obfd, (long) symtab_offset, 0); in coff_symtab_read()
723 perror_with_name (objfile->name); in coff_symtab_read()
725 current_objfile = objfile; in coff_symtab_read()
726 nlist_bfd_global = objfile->obfd; in coff_symtab_read()
750 coff_end_symtab (objfile); in coff_symtab_read()
766 tmpaddr = cs->c_value + ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); in coff_symtab_read()
767 record_minimal_symbol (cs->c_name, tmpaddr, mst_text, objfile); in coff_symtab_read()
803 coff_end_symtab (objfile); in coff_symtab_read()
832 cs->c_value + ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)), in coff_symtab_read()
889 sec = cs_to_section (cs, objfile); in coff_symtab_read()
894 sec = cs_to_section (cs, objfile); in coff_symtab_read()
901 tmpaddr += ANOFFSET (objfile->section_offsets, sec); in coff_symtab_read()
903 if (sec == SECT_OFF_TEXT (objfile)) in coff_symtab_read()
911 else if (sec == SECT_OFF_DATA (objfile)) in coff_symtab_read()
917 else if (sec == SECT_OFF_BSS (objfile)) in coff_symtab_read()
932 sec, NULL, objfile); in coff_symtab_read()
940 (cs, &main_aux, objfile); in coff_symtab_read()
968 process_coff_symbol (&fcn_cs_saved, &fcn_aux_saved, objfile); in coff_symtab_read()
1019 objfile); in coff_symtab_read()
1033 + ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)), in coff_symtab_read()
1037 + ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)), in coff_symtab_read()
1039 objfile in coff_symtab_read()
1049 tmpaddr += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); in coff_symtab_read()
1073 cs->c_value + ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); in coff_symtab_read()
1076 new->start_addr, tmpaddr, objfile); in coff_symtab_read()
1084 process_coff_symbol (cs, &main_aux, objfile); in coff_symtab_read()
1093 read_pe_exported_syms (objfile); in coff_symtab_read()
1097 coff_end_symtab (objfile); in coff_symtab_read()
1101 ALL_OBJFILE_SYMTABS (objfile, s) in coff_symtab_read()
1344 int last_line, struct objfile *objfile) in enter_linenos() argument
1380 + ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile))); in enter_linenos()
1473 struct objfile *objfile) in process_coff_symbol() argument
1476 = (struct symbol *) obstack_alloc (&objfile->objfile_obstack, in process_coff_symbol()
1482 name = EXTERNAL_NAME (name, objfile->obfd); in process_coff_symbol()
1484 SYMBOL_SET_NAMES (sym, name, strlen (name), objfile); in process_coff_symbol()
1489 SYMBOL_SECTION (sym) = cs_to_section (cs, objfile); in process_coff_symbol()
1493 SYMBOL_VALUE (sym) += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); in process_coff_symbol()
1523 SYMBOL_VALUE_ADDRESS (sym) += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); in process_coff_symbol()
1532 SYMBOL_VALUE_ADDRESS (sym) += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); in process_coff_symbol()