Lines Matching refs:sym_bfd

195 find_text_range (bfd * sym_bfd, struct objfile *objfile)
202 for (sec = sym_bfd->sections; sec; sec = sec->next)
203 if (bfd_get_section_flags (sym_bfd, sec) & SEC_CODE)
205 CORE_ADDR sec_start = bfd_section_vma (sym_bfd, sec);
206 CORE_ADDR sec_end = sec_start + bfd_section_size (sym_bfd, sec);
535 bfd *sym_bfd;
539 sym_bfd = objfile->obfd;
545 symfile_relocatable = bfd_get_file_flags (sym_bfd) & HAS_RELOC;
552 ((0 == strncmp (bfd_get_target (sym_bfd), "elf", 3))
553 || (0 == strncmp (bfd_get_target (sym_bfd), "som", 3))
554 || (0 == strncmp (bfd_get_target (sym_bfd), "coff", 4))
555 || (0 == strncmp (bfd_get_target (sym_bfd), "pe", 2))
556 || (0 == strncmp (bfd_get_target (sym_bfd), "epoc-pe", 7))
557 || (0 == strncmp (bfd_get_target (sym_bfd), "nlm", 3)));
559 val = bfd_seek (sym_bfd, DBX_SYMTAB_OFFSET (objfile), SEEK_SET);
626 bfd *sym_bfd = objfile->obfd;
627 char *name = bfd_get_filename (sym_bfd);
636 DBX_TEXT_SECTION (objfile) = bfd_get_section_by_name (sym_bfd, ".text");
637 DBX_DATA_SECTION (objfile) = bfd_get_section_by_name (sym_bfd, ".data");
638 DBX_BSS_SECTION (objfile) = bfd_get_section_by_name (sym_bfd, ".bss");
641 #define STRING_TABLE_OFFSET (sym_bfd->origin + obj_str_filepos (sym_bfd))
642 #define SYMBOL_TABLE_OFFSET (sym_bfd->origin + obj_sym_filepos (sym_bfd))
648 text_sect = bfd_get_section_by_name (sym_bfd, ".text");
651 DBX_TEXT_ADDR (objfile) = bfd_section_vma (sym_bfd, text_sect);
652 DBX_TEXT_SIZE (objfile) = bfd_section_size (sym_bfd, text_sect);
654 DBX_SYMBOL_SIZE (objfile) = obj_symbol_entry_size (sym_bfd);
655 DBX_SYMCOUNT (objfile) = bfd_get_symcount (sym_bfd);
681 val = bfd_seek (sym_bfd, STRING_TABLE_OFFSET, SEEK_SET);
686 val = bfd_bread (size_temp, sizeof (size_temp), sym_bfd);
708 DBX_STRINGTAB_SIZE (objfile) = bfd_h_get_32 (sym_bfd, size_temp);
711 || DBX_STRINGTAB_SIZE (objfile) > bfd_get_size (sym_bfd))
722 val = bfd_seek (sym_bfd, STRING_TABLE_OFFSET, SEEK_SET);
727 sym_bfd);
799 fill_symbuf (bfd *sym_bfd)
814 nbytes = bfd_bread (symbuf, count, sym_bfd);
821 if (bfd_seek (sym_bfd, filepos, SEEK_SET) != 0)
822 perror_with_name (bfd_get_filename (sym_bfd));
823 symbuf_left = bfd_section_size (sym_bfd, symbuf_sections->section);
831 nbytes = bfd_bread (symbuf, count, sym_bfd);
835 perror_with_name (bfd_get_filename (sym_bfd));
2401 bfd *sym_bfd;
2424 sym_bfd = pst->objfile->obfd;
3246 bfd *sym_bfd = objfile->obfd;
3247 char *name = bfd_get_filename (sym_bfd);
3262 if (stabstrsize > bfd_get_size (sym_bfd))
3270 val = bfd_seek (sym_bfd, stabstroffset, SEEK_SET);
3273 val = bfd_bread (DBX_STRINGTAB (objfile), stabstrsize, sym_bfd);
3289 stabsize = bfd_section_size (sym_bfd, stabsects->section);
3300 stabsize = bfd_section_size (sym_bfd, stabsect->section);
3307 symbuf_left = bfd_section_size (sym_bfd, stabsects->section);
3339 bfd *sym_bfd = objfile->obfd;
3340 char *name = bfd_get_filename (sym_bfd);
3350 find_text_range (sym_bfd, objfile);
3360 if (stabstrsize > bfd_get_size (sym_bfd))
3368 val = bfd_seek (sym_bfd, stabstroffset, SEEK_SET);
3371 val = bfd_bread (DBX_STRINGTAB (objfile), stabstrsize, sym_bfd);
3423 bfd *sym_bfd = objfile->obfd;
3424 char *name = bfd_get_filename (sym_bfd);
3429 stabsect = bfd_get_section_by_name (sym_bfd, stab_name);
3430 stabstrsect = bfd_get_section_by_name (sym_bfd, stabstr_name);
3443 text_sect = bfd_get_section_by_name (sym_bfd, text_name);
3446 DBX_TEXT_ADDR (objfile) = bfd_section_vma (sym_bfd, text_sect);
3447 DBX_TEXT_SIZE (objfile) = bfd_section_size (sym_bfd, text_sect);
3450 DBX_SYMCOUNT (objfile) = bfd_section_size (sym_bfd, stabsect)
3452 DBX_STRINGTAB_SIZE (objfile) = bfd_section_size (sym_bfd, stabstrsect);
3455 if (DBX_STRINGTAB_SIZE (objfile) > bfd_get_size (sym_bfd))
3463 val = bfd_get_section_contents (sym_bfd, /* bfd */