Lines Matching refs:adata
5167 mach_o_fat_data_struct *adata = NULL; in bfd_mach_o_fat_archive_p() local
5175 adata = bfd_alloc (abfd, sizeof (mach_o_fat_data_struct)); in bfd_mach_o_fat_archive_p()
5176 if (adata == NULL) in bfd_mach_o_fat_archive_p()
5179 adata->magic = bfd_getb32 (hdr.magic); in bfd_mach_o_fat_archive_p()
5180 adata->nfat_arch = bfd_getb32 (hdr.nfat_arch); in bfd_mach_o_fat_archive_p()
5181 if (adata->magic != 0xcafebabe) in bfd_mach_o_fat_archive_p()
5186 if (adata->nfat_arch > 30) in bfd_mach_o_fat_archive_p()
5189 adata->archentries = in bfd_mach_o_fat_archive_p()
5190 bfd_alloc2 (abfd, adata->nfat_arch, sizeof (mach_o_fat_archentry)); in bfd_mach_o_fat_archive_p()
5191 if (adata->archentries == NULL) in bfd_mach_o_fat_archive_p()
5194 for (i = 0; i < adata->nfat_arch; i++) in bfd_mach_o_fat_archive_p()
5199 adata->archentries[i].cputype = bfd_getb32 (arch.cputype); in bfd_mach_o_fat_archive_p()
5200 adata->archentries[i].cpusubtype = bfd_getb32 (arch.cpusubtype); in bfd_mach_o_fat_archive_p()
5201 adata->archentries[i].offset = bfd_getb32 (arch.offset); in bfd_mach_o_fat_archive_p()
5202 adata->archentries[i].size = bfd_getb32 (arch.size); in bfd_mach_o_fat_archive_p()
5203 adata->archentries[i].align = bfd_getb32 (arch.align); in bfd_mach_o_fat_archive_p()
5206 abfd->tdata.mach_o_fat_data = adata; in bfd_mach_o_fat_archive_p()
5211 if (adata != NULL) in bfd_mach_o_fat_archive_p()
5212 bfd_release (abfd, adata); in bfd_mach_o_fat_archive_p()
5256 mach_o_fat_data_struct *adata; in bfd_mach_o_fat_openr_next_archived_file() local
5263 adata = (mach_o_fat_data_struct *) archive->tdata.mach_o_fat_data; in bfd_mach_o_fat_openr_next_archived_file()
5264 BFD_ASSERT (adata != NULL); in bfd_mach_o_fat_openr_next_archived_file()
5275 for (i = 0; i < adata->nfat_arch; i++) in bfd_mach_o_fat_openr_next_archived_file()
5277 if (adata->archentries[i].offset == prev->origin) in bfd_mach_o_fat_openr_next_archived_file()
5281 if (i == adata->nfat_arch) in bfd_mach_o_fat_openr_next_archived_file()
5292 if (i >= adata->nfat_arch) in bfd_mach_o_fat_openr_next_archived_file()
5298 entry = &adata->archentries[i]; in bfd_mach_o_fat_openr_next_archived_file()
5345 mach_o_fat_data_struct *adata; in bfd_mach_o_fat_extract() local
5359 adata = (mach_o_fat_data_struct *) abfd->tdata.mach_o_fat_data; in bfd_mach_o_fat_extract()
5360 BFD_ASSERT (adata != NULL); in bfd_mach_o_fat_extract()
5362 for (i = 0; i < adata->nfat_arch; i++) in bfd_mach_o_fat_extract()
5364 struct mach_o_fat_archentry *e = &adata->archentries[i]; in bfd_mach_o_fat_extract()