Lines Matching defs:objfile

110 		       asection *bfd_section, struct objfile *objfile)
116 (name, address, ms_type, NULL, bfd_section->index, bfd_section, objfile);
127 void elf_symtab_read (struct objfile *objfile, int dynamic,
132 Given an objfile, a symbol table, and a flag indicating whether the
139 form the executable objfile. We gather any such info and record it
140 in data structures hung off the objfile's private data.
145 elf_symtab_read (struct objfile *objfile, int dynamic,
155 filed in the objfile. */
162 char *filesymname = obsavestring ("", 0, &objfile->objfile_obstack);
164 struct dbx_symfile_info *dbx = objfile->sym_stab_info;
165 int stripped = (bfd_get_symcount (objfile->obfd) == 0);
179 offset = ANOFFSET (objfile->section_offsets, sym->section->index);
200 mst_solib_trampoline, sym->section, objfile);
216 Chain any old one onto the objfile; remember new sym. */
227 &objfile->objfile_obstack);
321 special_local_sect = SECT_OFF_BSS (objfile);
323 special_local_sect = SECT_OFF_DATA (objfile);
325 special_local_sect = SECT_OFF_RODATA (objfile);
338 = max (SECT_OFF_BSS (objfile),
339 max (SECT_OFF_DATA (objfile),
340 SECT_OFF_RODATA (objfile)));
353 xmmalloc (objfile->md, size);
410 ms_type, sym->section, objfile);
460 elf_symfile_read (struct objfile *objfile, int mainline)
462 bfd *abfd = objfile->obfd;
476 objfile->sym_stab_info = (struct dbx_symfile_info *)
477 xmmalloc (objfile->md, sizeof (struct dbx_symfile_info));
478 memset ((char *) objfile->sym_stab_info, 0, sizeof (struct dbx_symfile_info));
479 make_cleanup (free_elfinfo, (void *) objfile);
482 chain of info into the dbx_symfile_info in objfile->sym_stab_info,
485 storage_needed = bfd_get_symtab_upper_bound (objfile->obfd);
487 error (_("Can't read symbols from %s: %s"), bfd_get_filename (objfile->obfd),
494 symcount = bfd_canonicalize_symtab (objfile->obfd, symbol_table);
497 error (_("Can't read symbols from %s: %s"), bfd_get_filename (objfile->obfd),
500 elf_symtab_read (objfile, 0, symcount, symbol_table);
505 storage_needed = bfd_get_dynamic_symtab_upper_bound (objfile->obfd);
511 dynsymcount = bfd_canonicalize_dynamic_symtab (objfile->obfd,
515 error (_("Can't read symbols from %s: %s"), bfd_get_filename (objfile->obfd),
518 elf_symtab_read (objfile, 1, dynsymcount, dyn_symbol_table);
542 elf_symtab_read (objfile, 0, synthcount, synth_symbol_table);
546 minimal symbols for this objfile. The debug readers below this point
551 install_minimal_symbols (objfile);
562 init_psymbol_list (objfile, 0);
589 elfmdebug_build_psymtabs (objfile, swap, ei.mdebugsect);
601 elfstab_build_psymtabs (objfile,
610 dwarf2_build_psymtabs (objfile, mainline);
615 dwarf_build_psymtabs (objfile,
623 dwarf2_build_frame_info (objfile);
626 /* This cleans up the objfile's sym_stab_info pointer, and the chain of
632 struct objfile *objfile = (struct objfile *) objp;
633 struct dbx_symfile_info *dbxinfo = objfile->sym_stab_info;
640 xmfree (objfile->md, ssi);
655 elf_new_init (struct objfile *ignore)
662 objfile. I.E, we are in the process of discarding all symbol information
663 for an objfile, freeing up all memory held for it, and unlinking the
664 objfile struct from the global list of known objfiles. */
667 elf_symfile_finish (struct objfile *objfile)
669 if (objfile->sym_stab_info != NULL)
671 xmfree (objfile->md, objfile->sym_stab_info);
685 elf_symfile_init (struct objfile *objfile)
690 objfile->flags |= OBJF_REORDERED;
702 elfstab_offset_sections (struct objfile *objfile, struct partial_symtab *pst)
705 struct dbx_symfile_info *dbx = objfile->sym_stab_info;
744 obstack_alloc (&objfile->objfile_obstack,
745 SIZEOF_N_SECTION_OFFSETS (objfile->num_sections));