Lines Matching refs:mdata
46 bfd_mach_o_data_struct *mdata = NULL; in bfd_mach_o_version() local
49 mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_version()
51 return mdata->header.version; in bfd_mach_o_version()
540 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_append_command() local
542 if (mdata->last_command != NULL) in bfd_mach_o_append_command()
543 mdata->last_command->next = cmd; in bfd_mach_o_append_command()
545 mdata->first_command = cmd; in bfd_mach_o_append_command()
546 mdata->last_command = cmd; in bfd_mach_o_append_command()
729 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_bfd_set_private_flags() local
731 if (!mdata) in bfd_mach_o_bfd_set_private_flags()
734 mdata->header.flags = flags; in bfd_mach_o_bfd_set_private_flags()
743 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_count_symbols() local
745 if (mdata->symtab == NULL) in bfd_mach_o_count_symbols()
747 return mdata->symtab->nsyms; in bfd_mach_o_count_symbols()
761 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_canonicalize_symtab() local
763 bfd_mach_o_symtab_command *sym = mdata->symtab; in bfd_mach_o_canonicalize_symtab()
803 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_get_synthetic_symtab() local
804 bfd_mach_o_dysymtab_command *dysymtab = mdata->dysymtab; in bfd_mach_o_get_synthetic_symtab()
805 bfd_mach_o_symtab_command *symtab = mdata->symtab; in bfd_mach_o_get_synthetic_symtab()
848 for (i = 0; i < mdata->nsects; i++) in bfd_mach_o_get_synthetic_symtab()
850 bfd_mach_o_section *sec = mdata->sections[i]; in bfd_mach_o_get_synthetic_symtab()
1335 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_canonicalize_non_scattered_reloc() local
1368 if (num > mdata->nsects) in bfd_mach_o_canonicalize_non_scattered_reloc()
1372 sym = mdata->sections[num - 1]->bfdsection->symbol_ptr_ptr; in bfd_mach_o_canonicalize_non_scattered_reloc()
1378 res->addend = -mdata->sections[num - 1]->addr; in bfd_mach_o_canonicalize_non_scattered_reloc()
1406 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_pre_canonicalize_one_reloc() local
1429 for (j = 0; j < mdata->nsects; j++) in bfd_mach_o_pre_canonicalize_one_reloc()
1431 bfd_mach_o_section *sect = mdata->sections[j]; in bfd_mach_o_pre_canonicalize_one_reloc()
1552 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_get_dynamic_reloc_upper_bound() local
1554 if (mdata->dysymtab == NULL) in bfd_mach_o_get_dynamic_reloc_upper_bound()
1556 return (mdata->dysymtab->nextrel + mdata->dysymtab->nlocrel + 1) in bfd_mach_o_get_dynamic_reloc_upper_bound()
1564 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_canonicalize_dynamic_reloc() local
1565 bfd_mach_o_dysymtab_command *dysymtab = mdata->dysymtab; in bfd_mach_o_canonicalize_dynamic_reloc()
1579 if (mdata->dyn_reloc_cache == NULL) in bfd_mach_o_canonicalize_dynamic_reloc()
1605 mdata->dyn_reloc_cache = res; in bfd_mach_o_canonicalize_dynamic_reloc()
1608 res = mdata->dyn_reloc_cache; in bfd_mach_o_canonicalize_dynamic_reloc()
1828 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_write_symtab_content() local
1895 sym->stroff = mdata->filelen; in bfd_mach_o_write_symtab_content()
1896 mdata->filelen += sym->strsize; in bfd_mach_o_write_symtab_content()
1908 mdata->filelen += padlen; in bfd_mach_o_write_symtab_content()
1944 bfd_mach_o_count_indirect_symbols (bfd *abfd, bfd_mach_o_data_struct *mdata) in bfd_mach_o_count_indirect_symbols() argument
1949 for (i = 0; i < mdata->nsects; ++i) in bfd_mach_o_count_indirect_symbols()
1951 bfd_mach_o_section *sec = mdata->sections[i]; in bfd_mach_o_count_indirect_symbols()
1972 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_build_dysymtab() local
2023 cmd->nindirectsyms = bfd_mach_o_count_indirect_symbols (abfd, mdata); in bfd_mach_o_build_dysymtab()
2029 mdata->filelen = FILE_ALIGN (mdata->filelen, 2); in bfd_mach_o_build_dysymtab()
2030 cmd->indirectsymoff = mdata->filelen; in bfd_mach_o_build_dysymtab()
2031 mdata->filelen += cmd->nindirectsyms * 4; in bfd_mach_o_build_dysymtab()
2040 for (i = 0; i < mdata->nsects; ++i) in bfd_mach_o_build_dysymtab()
2042 bfd_mach_o_section *sec = mdata->sections[i]; in bfd_mach_o_build_dysymtab()
2407 bfd_mach_o_mangle_sections (bfd *abfd, bfd_mach_o_data_struct *mdata) in bfd_mach_o_mangle_sections() argument
2417 if (mdata->nsects == nsect in bfd_mach_o_mangle_sections()
2418 && (mdata->nsects == 0 || mdata->sections != NULL)) in bfd_mach_o_mangle_sections()
2429 mdata->nsects = nsect; in bfd_mach_o_mangle_sections()
2430 mdata->sections = bfd_alloc2 (abfd, in bfd_mach_o_mangle_sections()
2431 mdata->nsects, sizeof (bfd_mach_o_section *)); in bfd_mach_o_mangle_sections()
2432 if (mdata->sections == NULL) in bfd_mach_o_mangle_sections()
2444 mdata->sections[target_index] = msect; in bfd_mach_o_mangle_sections()
2463 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_write_contents() local
2475 if (!bfd_mach_o_write_header (abfd, &mdata->header)) in bfd_mach_o_write_contents()
2479 for (cmd = mdata->first_command; cmd != NULL; cmd = cmd->next) in bfd_mach_o_write_contents()
2499 di->rebase_off = mdata->filelen; in bfd_mach_o_write_contents()
2500 mdata->filelen += di->rebase_size; in bfd_mach_o_write_contents()
2504 di->bind_off = mdata->filelen; in bfd_mach_o_write_contents()
2505 mdata->filelen += di->bind_size; in bfd_mach_o_write_contents()
2509 di->weak_bind_off = mdata->filelen; in bfd_mach_o_write_contents()
2510 mdata->filelen += di->weak_bind_size; in bfd_mach_o_write_contents()
2514 di->lazy_bind_off = mdata->filelen; in bfd_mach_o_write_contents()
2515 mdata->filelen += di->lazy_bind_size; in bfd_mach_o_write_contents()
2519 di->export_off = mdata->filelen; in bfd_mach_o_write_contents()
2520 mdata->filelen += di->export_size; in bfd_mach_o_write_contents()
2549 mdata->filelen = FILE_ALIGN (mdata->filelen, wide ? 3 : 2); in bfd_mach_o_write_contents()
2550 symtab->symoff = mdata->filelen; in bfd_mach_o_write_contents()
2553 mdata->filelen += symtab->nsyms * symlen; in bfd_mach_o_write_contents()
2571 linkedit->vmsize = mdata->filelen - linkedit->fileoff; in bfd_mach_o_write_contents()
2573 linkedit->filesize = mdata->filelen - linkedit->fileoff; in bfd_mach_o_write_contents()
2581 for (cmd = mdata->first_command; cmd != NULL; cmd = cmd->next) in bfd_mach_o_write_contents()
2682 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_build_obj_seg_command() local
2686 seg->fileoff = mdata->filelen; in bfd_mach_o_build_obj_seg_command()
2697 for (i = 0; i < mdata->nsects; ++i) in bfd_mach_o_build_obj_seg_command()
2699 bfd_mach_o_section *s = mdata->sections[i]; in bfd_mach_o_build_obj_seg_command()
2725 mdata->filelen = FILE_ALIGN (mdata->filelen, s->align); in bfd_mach_o_build_obj_seg_command()
2731 s->offset = mdata->filelen; in bfd_mach_o_build_obj_seg_command()
2735 mdata->filelen += s->size; in bfd_mach_o_build_obj_seg_command()
2749 for (i = 0; i < mdata->nsects; ++i) in bfd_mach_o_build_obj_seg_command()
2751 bfd_mach_o_section *s = mdata->sections[i]; in bfd_mach_o_build_obj_seg_command()
2765 mdata->filelen = FILE_ALIGN (mdata->filelen, 2); in bfd_mach_o_build_obj_seg_command()
2767 for (i = 0; i < mdata->nsects; ++i) in bfd_mach_o_build_obj_seg_command()
2769 bfd_mach_o_section *ms = mdata->sections[i]; in bfd_mach_o_build_obj_seg_command()
2779 sec->rel_filepos = mdata->filelen; in bfd_mach_o_build_obj_seg_command()
2781 mdata->filelen += sec->reloc_count * BFD_MACH_O_RELENT_SIZE; in bfd_mach_o_build_obj_seg_command()
2790 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_build_exec_seg_command() local
2798 seg->fileoff = mdata->filelen; in bfd_mach_o_build_exec_seg_command()
2806 for (i = 0; i < mdata->nsects; ++i) in bfd_mach_o_build_exec_seg_command()
2808 s = mdata->sections[i]; in bfd_mach_o_build_exec_seg_command()
2830 if ((mdata->filelen & pagemask) > (vma & pagemask)) in bfd_mach_o_build_exec_seg_command()
2831 mdata->filelen += pagemask + 1; in bfd_mach_o_build_exec_seg_command()
2832 seg->fileoff = mdata->filelen & ~pagemask; in bfd_mach_o_build_exec_seg_command()
2833 mdata->filelen = seg->fileoff + (vma & pagemask); in bfd_mach_o_build_exec_seg_command()
2852 mdata->filelen = FILE_ALIGN (mdata->filelen, s->align); in bfd_mach_o_build_exec_seg_command()
2854 s->offset = mdata->filelen; in bfd_mach_o_build_exec_seg_command()
2858 mdata->filelen += s->size; in bfd_mach_o_build_exec_seg_command()
2890 mdata->filelen = (mdata->filelen + pagemask) & ~pagemask; in bfd_mach_o_build_exec_seg_command()
2899 bfd_mach_o_layout_commands (bfd_mach_o_data_struct *mdata) in bfd_mach_o_layout_commands() argument
2901 unsigned wide = mach_o_wide_p (&mdata->header); in bfd_mach_o_layout_commands()
2911 mdata->header.ncmds = 0; in bfd_mach_o_layout_commands()
2913 for (cmd = mdata->first_command; cmd; cmd = cmd->next) in bfd_mach_o_layout_commands()
2915 mdata->header.ncmds++; in bfd_mach_o_layout_commands()
2969 mdata->header.sizeofcmds = offset - hdrlen; in bfd_mach_o_layout_commands()
2970 mdata->filelen = offset; in bfd_mach_o_layout_commands()
2979 bfd_mach_o_init_segment (bfd_mach_o_data_struct *mdata, in bfd_mach_o_init_segment() argument
2984 unsigned wide = mach_o_wide_p (&mdata->header); in bfd_mach_o_init_segment()
3012 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_build_commands() local
3013 unsigned wide = mach_o_wide_p (&mdata->header); in bfd_mach_o_build_commands()
3023 if (mdata->header.ncmds != 0) in bfd_mach_o_build_commands()
3027 if (mdata->header.filetype == 0) in bfd_mach_o_build_commands()
3030 mdata->header.filetype = BFD_MACH_O_MH_EXECUTE; in bfd_mach_o_build_commands()
3032 mdata->header.filetype = BFD_MACH_O_MH_DYLIB; in bfd_mach_o_build_commands()
3034 mdata->header.filetype = BFD_MACH_O_MH_OBJECT; in bfd_mach_o_build_commands()
3040 if (mdata->nsects == 0 || mdata->sections == NULL) in bfd_mach_o_build_commands()
3041 if (! bfd_mach_o_mangle_sections (abfd, mdata)) in bfd_mach_o_build_commands()
3050 if (mdata->header.filetype == BFD_MACH_O_MH_OBJECT) in bfd_mach_o_build_commands()
3054 nbr_segcmd = (mdata->nsects > 0) ? 1 : 0; in bfd_mach_o_build_commands()
3065 for (i = 0; i < mdata->nsects; i++) in bfd_mach_o_build_commands()
3067 bfd_mach_o_section *this_sect = mdata->sections[i]; in bfd_mach_o_build_commands()
3095 if (mdata->header.filetype == BFD_MACH_O_MH_EXECUTE in bfd_mach_o_build_commands()
3100 mdata->filelen = wide ? BFD_MACH_O_HEADER_64_SIZE : BFD_MACH_O_HEADER_SIZE; in bfd_mach_o_build_commands()
3107 return bfd_mach_o_layout_commands (mdata); in bfd_mach_o_build_commands()
3116 commands[nbr_commands - 1].next = mdata->first_command; in bfd_mach_o_build_commands()
3117 if (mdata->first_command == NULL) in bfd_mach_o_build_commands()
3118 mdata->last_command = &commands[nbr_commands - 1]; in bfd_mach_o_build_commands()
3119 mdata->first_command = &commands[0]; in bfd_mach_o_build_commands()
3121 if (mdata->header.filetype == BFD_MACH_O_MH_OBJECT && nbr_segcmd != 0) in bfd_mach_o_build_commands()
3124 bfd_mach_o_init_segment (mdata, &commands[0], "", mdata->nsects); in bfd_mach_o_build_commands()
3134 bfd_mach_o_init_segment (mdata, cmd, "__PAGEZERO", 0); in bfd_mach_o_build_commands()
3138 for (i = 0; i < mdata->nsects;) in bfd_mach_o_build_commands()
3140 const char *segname = mdata->sections[i]->segname; in bfd_mach_o_build_commands()
3144 for (i++; i < mdata->nsects; i++) in bfd_mach_o_build_commands()
3145 if (strcmp (mdata->sections[i]->segname, segname) == 0) in bfd_mach_o_build_commands()
3150 bfd_mach_o_init_segment (mdata, cmd, segname, nbr_sect); in bfd_mach_o_build_commands()
3155 bfd_mach_o_init_segment (mdata, cmd, "__LINKEDIT", 0); in bfd_mach_o_build_commands()
3190 if (! bfd_mach_o_layout_commands (mdata)) in bfd_mach_o_build_commands()
3195 if (mdata->header.filetype == BFD_MACH_O_MH_OBJECT) in bfd_mach_o_build_commands()
3224 commands[nbr_segcmd - 1].command.segment.fileoff = mdata->filelen; in bfd_mach_o_build_commands()
3568 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_read_symtab_symbol() local
3569 unsigned int wide = mach_o_wide_p (&mdata->header); in bfd_mach_o_read_symtab_symbol()
3635 if ((section > 0) && (section <= mdata->nsects)) in bfd_mach_o_read_symtab_symbol()
3637 s->symbol.section = mdata->sections[section - 1]->bfdsection; in bfd_mach_o_read_symtab_symbol()
3639 s->symbol.value - mdata->sections[section - 1]->addr; in bfd_mach_o_read_symtab_symbol()
3675 if ((section > 0) && (section <= mdata->nsects)) in bfd_mach_o_read_symtab_symbol()
3677 s->symbol.section = mdata->sections[section - 1]->bfdsection; in bfd_mach_o_read_symtab_symbol()
3679 s->symbol.value - mdata->sections[section - 1]->addr; in bfd_mach_o_read_symtab_symbol()
3688 s->symbol.name, section, mdata->nsects); in bfd_mach_o_read_symtab_symbol()
3716 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_read_symtab_strtab() local
3717 bfd_mach_o_symtab_command *sym = mdata->symtab; in bfd_mach_o_read_symtab_strtab()
3765 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_read_symtab_symbols() local
3766 bfd_mach_o_symtab_command *sym = mdata->symtab; in bfd_mach_o_read_symtab_symbols()
3862 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_read_dylib() local
3895 if (bfd_seek (abfd, mdata->hdr_offset + cmd->name_offset, SEEK_SET) != 0 in bfd_mach_o_read_dylib()
3994 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_read_thread() local
4060 switch (mdata->header.cputype) in bfd_mach_o_read_thread()
4108 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_read_dysymtab() local
4275 if (mdata->dysymtab) in bfd_mach_o_read_dysymtab()
4277 mdata->dysymtab = cmd; in bfd_mach_o_read_dysymtab()
4286 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_read_symtab() local
4304 if (mdata->symtab) in bfd_mach_o_read_symtab()
4306 mdata->symtab = symtab; in bfd_mach_o_read_symtab()
4622 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_read_command() local
4627 if (bfd_seek (abfd, mdata->hdr_offset + command->offset, SEEK_SET) != 0 in bfd_mach_o_read_command()
4759 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_flatten_sections() local
4764 mdata->nsects = 0; in bfd_mach_o_flatten_sections()
4766 for (cmd = mdata->first_command; cmd != NULL; cmd = cmd->next) in bfd_mach_o_flatten_sections()
4773 mdata->nsects += seg->nsects; in bfd_mach_o_flatten_sections()
4778 mdata->sections = bfd_alloc2 (abfd, in bfd_mach_o_flatten_sections()
4779 mdata->nsects, sizeof (bfd_mach_o_section *)); in bfd_mach_o_flatten_sections()
4784 for (cmd = mdata->first_command; cmd != NULL; cmd = cmd->next) in bfd_mach_o_flatten_sections()
4792 BFD_ASSERT (csect + seg->nsects <= mdata->nsects); in bfd_mach_o_flatten_sections()
4795 mdata->sections[csect++] = sec; in bfd_mach_o_flatten_sections()
4803 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_scan_start_address() local
4808 for (cmd = mdata->first_command; cmd != NULL; cmd = cmd->next) in bfd_mach_o_scan_start_address()
4815 else if (cmd->type == BFD_MACH_O_LC_MAIN && mdata->nsects > 1) in bfd_mach_o_scan_start_address()
4818 bfd_mach_o_section *text_sect = mdata->sections[0]; in bfd_mach_o_scan_start_address()
4835 if ((mdata->header.cputype == BFD_MACH_O_CPU_TYPE_I386) in bfd_mach_o_scan_start_address()
4846 else if ((mdata->header.cputype == BFD_MACH_O_CPU_TYPE_POWERPC) in bfd_mach_o_scan_start_address()
4857 else if ((mdata->header.cputype == BFD_MACH_O_CPU_TYPE_POWERPC_64) in bfd_mach_o_scan_start_address()
4868 else if ((mdata->header.cputype == BFD_MACH_O_CPU_TYPE_X86_64) in bfd_mach_o_scan_start_address()
4904 bfd_mach_o_data_struct *mdata) in bfd_mach_o_scan() argument
4914 mdata->header = *header; in bfd_mach_o_scan()
4931 abfd->tdata.mach_o_data = mdata; in bfd_mach_o_scan()
4949 mdata->first_command = NULL; in bfd_mach_o_scan()
4950 mdata->last_command = NULL; in bfd_mach_o_scan()
4986 bfd_mach_o_data_struct *mdata = NULL; in bfd_mach_o_mkobject_init() local
4988 mdata = bfd_zalloc (abfd, sizeof (bfd_mach_o_data_struct)); in bfd_mach_o_mkobject_init()
4989 if (mdata == NULL) in bfd_mach_o_mkobject_init()
4991 abfd->tdata.mach_o_data = mdata; in bfd_mach_o_mkobject_init()
4993 mdata->header.magic = 0; in bfd_mach_o_mkobject_init()
4994 mdata->header.cputype = 0; in bfd_mach_o_mkobject_init()
4995 mdata->header.cpusubtype = 0; in bfd_mach_o_mkobject_init()
4996 mdata->header.filetype = 0; in bfd_mach_o_mkobject_init()
4997 mdata->header.ncmds = 0; in bfd_mach_o_mkobject_init()
4998 mdata->header.sizeofcmds = 0; in bfd_mach_o_mkobject_init()
4999 mdata->header.flags = 0; in bfd_mach_o_mkobject_init()
5000 mdata->header.byteorder = BFD_ENDIAN_UNKNOWN; in bfd_mach_o_mkobject_init()
5001 mdata->first_command = NULL; in bfd_mach_o_mkobject_init()
5002 mdata->last_command = NULL; in bfd_mach_o_mkobject_init()
5003 mdata->nsects = 0; in bfd_mach_o_mkobject_init()
5004 mdata->sections = NULL; in bfd_mach_o_mkobject_init()
5005 mdata->dyn_reloc_cache = NULL; in bfd_mach_o_mkobject_init()
5013 bfd_mach_o_data_struct *mdata; in bfd_mach_o_gen_mkobject() local
5018 mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_gen_mkobject()
5019 mdata->header.magic = BFD_MACH_O_MH_MAGIC; in bfd_mach_o_gen_mkobject()
5020 mdata->header.cputype = 0; in bfd_mach_o_gen_mkobject()
5021 mdata->header.cpusubtype = 0; in bfd_mach_o_gen_mkobject()
5022 mdata->header.byteorder = abfd->xvec->byteorder; in bfd_mach_o_gen_mkobject()
5023 mdata->header.version = 1; in bfd_mach_o_gen_mkobject()
5035 bfd_mach_o_data_struct *mdata; in bfd_mach_o_header_p() local
5091 mdata = (bfd_mach_o_data_struct *) bfd_zalloc (abfd, sizeof (*mdata)); in bfd_mach_o_header_p()
5092 if (mdata == NULL) in bfd_mach_o_header_p()
5094 mdata->hdr_offset = hdr_off; in bfd_mach_o_header_p()
5096 if (!bfd_mach_o_scan (abfd, &header, mdata)) in bfd_mach_o_header_p()
5126 bfd_mach_o_data_struct *mdata; in bfd_mach_o_get_base_address() local
5132 mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_get_base_address()
5134 for (cmd = mdata->first_command; cmd != NULL; cmd = cmd->next) in bfd_mach_o_get_base_address()
5397 struct mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_lookup_command() local
5401 BFD_ASSERT (mdata != NULL); in bfd_mach_o_lookup_command()
5405 for (cmd = mdata->first_command; cmd != NULL; cmd = cmd->next) in bfd_mach_o_lookup_command()
5523 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_core_fetch_environment() local
5524 unsigned long stackaddr = bfd_mach_o_stack_addr (mdata->header.cputype); in bfd_mach_o_core_fetch_environment()
5527 for (cmd = mdata->first_command; cmd != NULL; cmd = cmd->next) in bfd_mach_o_core_fetch_environment()
5753 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_find_nearest_line() local
5754 if (mdata == NULL) in bfd_mach_o_find_nearest_line()
5756 switch (mdata->header.filetype) in bfd_mach_o_find_nearest_line()
5764 if (mdata->dwarf2_find_line_info == NULL) in bfd_mach_o_find_nearest_line()
5766 mdata->dsym_bfd = bfd_mach_o_follow_dsym (abfd); in bfd_mach_o_find_nearest_line()
5771 if (! mdata->dsym_bfd) in bfd_mach_o_find_nearest_line()
5773 if (! _bfd_dwarf2_slurp_debug_info (abfd, mdata->dsym_bfd, in bfd_mach_o_find_nearest_line()
5775 &mdata->dwarf2_find_line_info, in bfd_mach_o_find_nearest_line()
5787 &mdata->dwarf2_find_line_info); in bfd_mach_o_find_nearest_line()
5793 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_close_and_cleanup() local
5794 if (bfd_get_format (abfd) == bfd_object && mdata != NULL) in bfd_mach_o_close_and_cleanup()
5796 _bfd_dwarf2_cleanup_debug_info (abfd, &mdata->dwarf2_find_line_info); in bfd_mach_o_close_and_cleanup()
5798 if (mdata->dsym_bfd != NULL) in bfd_mach_o_close_and_cleanup()
5800 bfd *fat_bfd = mdata->dsym_bfd->my_archive; in bfd_mach_o_close_and_cleanup()
5812 : mdata->dsym_bfd->filename); in bfd_mach_o_close_and_cleanup()
5814 bfd_close (mdata->dsym_bfd); in bfd_mach_o_close_and_cleanup()
5815 mdata->dsym_bfd = NULL; in bfd_mach_o_close_and_cleanup()
5829 bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); in bfd_mach_o_free_cached_info() local
5831 free (mdata->dyn_reloc_cache); in bfd_mach_o_free_cached_info()
5832 mdata->dyn_reloc_cache = NULL; in bfd_mach_o_free_cached_info()