Lines Matching refs:buf

146 bfd_sym_parse_file_reference_v32 (unsigned char *buf,  in bfd_sym_parse_file_reference_v32()  argument
152 entry->fref_frte_index = bfd_getb16 (buf); in bfd_sym_parse_file_reference_v32()
153 entry->fref_offset = bfd_getb32 (buf + 2); in bfd_sym_parse_file_reference_v32()
157 bfd_sym_parse_disk_table_v32 (unsigned char *buf, in bfd_sym_parse_disk_table_v32() argument
163 table->dti_first_page = bfd_getb16 (buf); in bfd_sym_parse_disk_table_v32()
164 table->dti_page_count = bfd_getb16 (buf + 2); in bfd_sym_parse_disk_table_v32()
165 table->dti_object_count = bfd_getb32 (buf + 4); in bfd_sym_parse_disk_table_v32()
169 bfd_sym_parse_header_v32 (unsigned char *buf, in bfd_sym_parse_header_v32() argument
175 memcpy (header->dshb_id, buf, 32); in bfd_sym_parse_header_v32()
176 header->dshb_page_size = bfd_getb16 (buf + 32); in bfd_sym_parse_header_v32()
177 header->dshb_hash_page = bfd_getb16 (buf + 34); in bfd_sym_parse_header_v32()
178 header->dshb_root_mte = bfd_getb16 (buf + 36); in bfd_sym_parse_header_v32()
179 header->dshb_mod_date = bfd_getb32 (buf + 38); in bfd_sym_parse_header_v32()
181 bfd_sym_parse_disk_table_v32 (buf + 42, 8, &header->dshb_frte); in bfd_sym_parse_header_v32()
182 bfd_sym_parse_disk_table_v32 (buf + 50, 8, &header->dshb_rte); in bfd_sym_parse_header_v32()
183 bfd_sym_parse_disk_table_v32 (buf + 58, 8, &header->dshb_mte); in bfd_sym_parse_header_v32()
184 bfd_sym_parse_disk_table_v32 (buf + 66, 8, &header->dshb_cmte); in bfd_sym_parse_header_v32()
185 bfd_sym_parse_disk_table_v32 (buf + 74, 8, &header->dshb_cvte); in bfd_sym_parse_header_v32()
186 bfd_sym_parse_disk_table_v32 (buf + 82, 8, &header->dshb_csnte); in bfd_sym_parse_header_v32()
187 bfd_sym_parse_disk_table_v32 (buf + 90, 8, &header->dshb_clte); in bfd_sym_parse_header_v32()
188 bfd_sym_parse_disk_table_v32 (buf + 98, 8, &header->dshb_ctte); in bfd_sym_parse_header_v32()
189 bfd_sym_parse_disk_table_v32 (buf + 106, 8, &header->dshb_tte); in bfd_sym_parse_header_v32()
190 bfd_sym_parse_disk_table_v32 (buf + 114, 8, &header->dshb_nte); in bfd_sym_parse_header_v32()
191 bfd_sym_parse_disk_table_v32 (buf + 122, 8, &header->dshb_tinfo); in bfd_sym_parse_header_v32()
192 bfd_sym_parse_disk_table_v32 (buf + 130, 8, &header->dshb_fite); in bfd_sym_parse_header_v32()
193 bfd_sym_parse_disk_table_v32 (buf + 138, 8, &header->dshb_const); in bfd_sym_parse_header_v32()
195 memcpy (&header->dshb_file_creator, buf + 146, 4); in bfd_sym_parse_header_v32()
196 memcpy (&header->dshb_file_type, buf + 150, 4); in bfd_sym_parse_header_v32()
202 unsigned char buf[154]; in bfd_sym_read_header_v32() local
205 ret = bfd_bread (buf, 154, abfd); in bfd_sym_read_header_v32()
209 bfd_sym_parse_header_v32 (buf, 154, header); in bfd_sym_read_header_v32()
313 bfd_sym_parse_resources_table_entry_v32 (unsigned char *buf, in bfd_sym_parse_resources_table_entry_v32() argument
319 memcpy (&entry->rte_res_type, buf, 4); in bfd_sym_parse_resources_table_entry_v32()
320 entry->rte_res_number = bfd_getb16 (buf + 4); in bfd_sym_parse_resources_table_entry_v32()
321 entry->rte_nte_index = bfd_getb32 (buf + 6); in bfd_sym_parse_resources_table_entry_v32()
322 entry->rte_mte_first = bfd_getb16 (buf + 10); in bfd_sym_parse_resources_table_entry_v32()
323 entry->rte_mte_last = bfd_getb16 (buf + 12); in bfd_sym_parse_resources_table_entry_v32()
324 entry->rte_res_size = bfd_getb32 (buf + 14); in bfd_sym_parse_resources_table_entry_v32()
328 bfd_sym_parse_modules_table_entry_v33 (unsigned char *buf, in bfd_sym_parse_modules_table_entry_v33() argument
334 entry->mte_rte_index = bfd_getb16 (buf); in bfd_sym_parse_modules_table_entry_v33()
335 entry->mte_res_offset = bfd_getb32 (buf + 2); in bfd_sym_parse_modules_table_entry_v33()
336 entry->mte_size = bfd_getb32 (buf + 6); in bfd_sym_parse_modules_table_entry_v33()
337 entry->mte_kind = buf[10]; in bfd_sym_parse_modules_table_entry_v33()
338 entry->mte_scope = buf[11]; in bfd_sym_parse_modules_table_entry_v33()
339 entry->mte_parent = bfd_getb16 (buf + 12); in bfd_sym_parse_modules_table_entry_v33()
340 bfd_sym_parse_file_reference_v32 (buf + 14, 6, &entry->mte_imp_fref); in bfd_sym_parse_modules_table_entry_v33()
341 entry->mte_imp_end = bfd_getb32 (buf + 20); in bfd_sym_parse_modules_table_entry_v33()
342 entry->mte_nte_index = bfd_getb32 (buf + 24); in bfd_sym_parse_modules_table_entry_v33()
343 entry->mte_cmte_index = bfd_getb16 (buf + 28); in bfd_sym_parse_modules_table_entry_v33()
344 entry->mte_cvte_index = bfd_getb32 (buf + 30); in bfd_sym_parse_modules_table_entry_v33()
345 entry->mte_clte_index = bfd_getb16 (buf + 34); in bfd_sym_parse_modules_table_entry_v33()
346 entry->mte_ctte_index = bfd_getb16 (buf + 36); in bfd_sym_parse_modules_table_entry_v33()
347 entry->mte_csnte_idx_1 = bfd_getb32 (buf + 38); in bfd_sym_parse_modules_table_entry_v33()
348 entry->mte_csnte_idx_2 = bfd_getb32 (buf + 42); in bfd_sym_parse_modules_table_entry_v33()
352 bfd_sym_parse_file_references_table_entry_v32 (unsigned char *buf, in bfd_sym_parse_file_references_table_entry_v32() argument
361 type = bfd_getb16 (buf); in bfd_sym_parse_file_references_table_entry_v32()
371 entry->filename.nte_index = bfd_getb32 (buf + 2); in bfd_sym_parse_file_references_table_entry_v32()
372 entry->filename.mod_date = bfd_getb32 (buf + 6); in bfd_sym_parse_file_references_table_entry_v32()
377 entry->entry.file_offset = bfd_getb32 (buf + 2); in bfd_sym_parse_file_references_table_entry_v32()
382 bfd_sym_parse_contained_modules_table_entry_v32 (unsigned char *buf, in bfd_sym_parse_contained_modules_table_entry_v32() argument
391 type = bfd_getb16 (buf); in bfd_sym_parse_contained_modules_table_entry_v32()
401 entry->entry.nte_index = bfd_getb32 (buf + 2); in bfd_sym_parse_contained_modules_table_entry_v32()
407 bfd_sym_parse_contained_variables_table_entry_v32 (unsigned char *buf, in bfd_sym_parse_contained_variables_table_entry_v32() argument
416 type = bfd_getb16 (buf); in bfd_sym_parse_contained_variables_table_entry_v32()
426 bfd_sym_parse_file_reference_v32 (buf + 2, 6, &entry->file.fref); in bfd_sym_parse_contained_variables_table_entry_v32()
431 entry->entry.nte_index = bfd_getb32 (buf + 2); in bfd_sym_parse_contained_variables_table_entry_v32()
432 entry->entry.file_delta = bfd_getb16 (buf + 6); in bfd_sym_parse_contained_variables_table_entry_v32()
433 entry->entry.scope = buf[8]; in bfd_sym_parse_contained_variables_table_entry_v32()
434 entry->entry.la_size = buf[9]; in bfd_sym_parse_contained_variables_table_entry_v32()
438 entry->entry.address.scstruct.sca_kind = buf[10]; in bfd_sym_parse_contained_variables_table_entry_v32()
439 entry->entry.address.scstruct.sca_class = buf[11]; in bfd_sym_parse_contained_variables_table_entry_v32()
440 entry->entry.address.scstruct.sca_offset = bfd_getb32 (buf + 12); in bfd_sym_parse_contained_variables_table_entry_v32()
445 memcpy (&entry->entry.address.lastruct.la, buf + 10, in bfd_sym_parse_contained_variables_table_entry_v32()
448 entry->entry.address.lastruct.la_kind = buf[23]; in bfd_sym_parse_contained_variables_table_entry_v32()
452 entry->entry.address.biglastruct.big_la = bfd_getb32 (buf + 10); in bfd_sym_parse_contained_variables_table_entry_v32()
453 entry->entry.address.biglastruct.big_la_kind = buf[12]; in bfd_sym_parse_contained_variables_table_entry_v32()
459 bfd_sym_parse_contained_statements_table_entry_v32 (unsigned char *buf, in bfd_sym_parse_contained_statements_table_entry_v32() argument
468 type = bfd_getb16 (buf); in bfd_sym_parse_contained_statements_table_entry_v32()
478 bfd_sym_parse_file_reference_v32 (buf + 2, 6, &entry->file.fref); in bfd_sym_parse_contained_statements_table_entry_v32()
483 entry->entry.mte_offset = bfd_getb16 (buf + 2); in bfd_sym_parse_contained_statements_table_entry_v32()
484 entry->entry.file_delta = bfd_getb32 (buf + 4); in bfd_sym_parse_contained_statements_table_entry_v32()
490 bfd_sym_parse_contained_labels_table_entry_v32 (unsigned char *buf, in bfd_sym_parse_contained_labels_table_entry_v32() argument
499 type = bfd_getb16 (buf); in bfd_sym_parse_contained_labels_table_entry_v32()
509 bfd_sym_parse_file_reference_v32 (buf + 2, 6, &entry->file.fref); in bfd_sym_parse_contained_labels_table_entry_v32()
514 entry->entry.mte_offset = bfd_getb16 (buf + 2); in bfd_sym_parse_contained_labels_table_entry_v32()
515 entry->entry.nte_index = bfd_getb32 (buf + 4); in bfd_sym_parse_contained_labels_table_entry_v32()
516 entry->entry.file_delta = bfd_getb16 (buf + 8); in bfd_sym_parse_contained_labels_table_entry_v32()
517 entry->entry.scope = bfd_getb16 (buf + 10); in bfd_sym_parse_contained_labels_table_entry_v32()
523 bfd_sym_parse_type_table_entry_v32 (unsigned char *buf, in bfd_sym_parse_type_table_entry_v32() argument
529 *entry = bfd_getb32 (buf); in bfd_sym_parse_type_table_entry_v32()
540 unsigned char buf[18]; in bfd_sym_fetch_resources_table_entry() local
575 if (bfd_bread (buf, entry_size, abfd) != entry_size) in bfd_sym_fetch_resources_table_entry()
578 (*parser) (buf, entry_size, entry); in bfd_sym_fetch_resources_table_entry()
591 unsigned char buf[46]; in bfd_sym_fetch_modules_table_entry() local
626 if (bfd_bread (buf, entry_size, abfd) != entry_size) in bfd_sym_fetch_modules_table_entry()
629 (*parser) (buf, entry_size, entry); in bfd_sym_fetch_modules_table_entry()
642 unsigned char buf[8]; in bfd_sym_fetch_file_references_table_entry() local
676 if (bfd_bread (buf, entry_size, abfd) != entry_size) in bfd_sym_fetch_file_references_table_entry()
679 (*parser) (buf, entry_size, entry); in bfd_sym_fetch_file_references_table_entry()
692 unsigned char buf[6]; in bfd_sym_fetch_contained_modules_table_entry() local
726 if (bfd_bread (buf, entry_size, abfd) != entry_size) in bfd_sym_fetch_contained_modules_table_entry()
729 (*parser) (buf, entry_size, entry); in bfd_sym_fetch_contained_modules_table_entry()
742 unsigned char buf[26]; in bfd_sym_fetch_contained_variables_table_entry() local
776 if (bfd_bread (buf, entry_size, abfd) != entry_size) in bfd_sym_fetch_contained_variables_table_entry()
779 (*parser) (buf, entry_size, entry); in bfd_sym_fetch_contained_variables_table_entry()
792 unsigned char buf[8]; in bfd_sym_fetch_contained_statements_table_entry() local
826 if (bfd_bread (buf, entry_size, abfd) != entry_size) in bfd_sym_fetch_contained_statements_table_entry()
829 (*parser) (buf, entry_size, entry); in bfd_sym_fetch_contained_statements_table_entry()
842 unsigned char buf[12]; in bfd_sym_fetch_contained_labels_table_entry() local
876 if (bfd_bread (buf, entry_size, abfd) != entry_size) in bfd_sym_fetch_contained_labels_table_entry()
879 (*parser) (buf, entry_size, entry); in bfd_sym_fetch_contained_labels_table_entry()
892 unsigned char buf[0]; in bfd_sym_fetch_contained_types_table_entry() local
926 if (bfd_bread (buf, entry_size, abfd) != entry_size) in bfd_sym_fetch_contained_types_table_entry()
929 (*parser) (buf, entry_size, entry); in bfd_sym_fetch_contained_types_table_entry()
942 unsigned char buf[0]; in bfd_sym_fetch_file_references_index_table_entry() local
976 if (bfd_bread (buf, entry_size, abfd) != entry_size) in bfd_sym_fetch_file_references_index_table_entry()
979 (*parser) (buf, entry_size, entry); in bfd_sym_fetch_file_references_index_table_entry()
992 unsigned char buf[0]; in bfd_sym_fetch_constant_pool_entry() local
1026 if (bfd_bread (buf, entry_size, abfd) != entry_size) in bfd_sym_fetch_constant_pool_entry()
1029 (*parser) (buf, entry_size, entry); in bfd_sym_fetch_constant_pool_entry()
1042 unsigned char buf[4]; in bfd_sym_fetch_type_table_entry() local
1073 if (bfd_bread (buf, entry_size, abfd) != entry_size) in bfd_sym_fetch_type_table_entry()
1076 (*parser) (buf, entry_size, entry); in bfd_sym_fetch_type_table_entry()
1086 unsigned char buf[4]; in bfd_sym_fetch_type_information_table_entry() local
1096 if (bfd_bread (buf, 4, abfd) != 4) in bfd_sym_fetch_type_information_table_entry()
1098 entry->nte_index = bfd_getb32 (buf); in bfd_sym_fetch_type_information_table_entry()
1100 if (bfd_bread (buf, 2, abfd) != 2) in bfd_sym_fetch_type_information_table_entry()
1102 entry->physical_size = bfd_getb16 (buf); in bfd_sym_fetch_type_information_table_entry()
1106 if (bfd_bread (buf, 4, abfd) != 4) in bfd_sym_fetch_type_information_table_entry()
1109 entry->logical_size = bfd_getb32 (buf); in bfd_sym_fetch_type_information_table_entry()
1114 if (bfd_bread (buf, 2, abfd) != 2) in bfd_sym_fetch_type_information_table_entry()
1117 entry->logical_size = bfd_getb16 (buf); in bfd_sym_fetch_type_information_table_entry()
1527 bfd_sym_fetch_long (unsigned char *buf, in bfd_sym_fetch_long() argument
1541 else if (! (buf[offset] & 0x80)) in bfd_sym_fetch_long()
1543 *value = buf[offset]; in bfd_sym_fetch_long()
1547 else if (buf[offset] == 0xc0) in bfd_sym_fetch_long()
1557 *value = bfd_getb32 (buf + offset + 1); in bfd_sym_fetch_long()
1562 else if ((buf[offset] & 0xc0) == 0xc0) in bfd_sym_fetch_long()
1564 *value = -(buf[offset] & 0x3f); in bfd_sym_fetch_long()
1568 else if ((buf[offset] & 0xc0) == 0x80) in bfd_sym_fetch_long()
1578 *value = bfd_getb16 (buf + offset) & 0x3fff; in bfd_sym_fetch_long()
1595 unsigned char *buf, in bfd_sym_print_type_information() argument
1611 type = buf[offset]; in bfd_sym_print_type_information()
1635 bfd_sym_fetch_long (buf, len, offset, &offset, &value); in bfd_sym_print_type_information()
1653 bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset); in bfd_sym_print_type_information()
1661 bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset); in bfd_sym_print_type_information()
1662 bfd_sym_fetch_long (buf, len, offset, &offset, &value); in bfd_sym_print_type_information()
1673 bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset); in bfd_sym_print_type_information()
1674 bfd_sym_fetch_long (buf, len, offset, &offset, &lower); in bfd_sym_print_type_information()
1675 bfd_sym_fetch_long (buf, len, offset, &offset, &upper); in bfd_sym_print_type_information()
1676 bfd_sym_fetch_long (buf, len, offset, &offset, &nelem); in bfd_sym_print_type_information()
1684 bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset); in bfd_sym_print_type_information()
1692 bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset); in bfd_sym_print_type_information()
1694 bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset); in bfd_sym_print_type_information()
1707 bfd_sym_fetch_long (buf, len, offset, &offset, &nrec); in bfd_sym_print_type_information()
1712 bfd_sym_fetch_long (buf, len, offset, &offset, &eloff); in bfd_sym_print_type_information()
1715 bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset); in bfd_sym_print_type_information()
1722 bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset); in bfd_sym_print_type_information()
1724 bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset); in bfd_sym_print_type_information()
1726 bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset); in bfd_sym_print_type_information()
1734 bfd_sym_fetch_long (buf, len, offset, &offset, &value); in bfd_sym_print_type_information()
1743 bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset); in bfd_sym_print_type_information()
1759 bfd_sym_fetch_long (buf, len, offset, &offset, &n); in bfd_sym_print_type_information()
1760 bfd_sym_fetch_long (buf, len, offset, &offset, &width); in bfd_sym_print_type_information()
1761 bfd_sym_fetch_long (buf, len, offset, &offset, &m); in bfd_sym_print_type_information()
1766 bfd_sym_fetch_long (buf, len, offset, &offset, &l); in bfd_sym_print_type_information()
1777 bfd_sym_fetch_long (buf, len, offset, &offset, &msb); in bfd_sym_print_type_information()
1778 bfd_sym_fetch_long (buf, len, offset, &offset, &lsb); in bfd_sym_print_type_information()
1794 unsigned char *buf; in bfd_sym_print_type_information_table_entry() local
1806 buf = alloca (entry->physical_size); in bfd_sym_print_type_information_table_entry()
1807 if (buf == NULL) in bfd_sym_print_type_information_table_entry()
1817 if (bfd_bread (buf, entry->physical_size, abfd) != entry->physical_size) in bfd_sym_print_type_information_table_entry()
1827 fprintf (f, "0x%02x", buf[i]); in bfd_sym_print_type_information_table_entry()
1829 fprintf (f, " 0x%02x", buf[i]); in bfd_sym_print_type_information_table_entry()
1835 bfd_sym_print_type_information (abfd, f, buf, entry->physical_size, 0, &offset); in bfd_sym_print_type_information_table_entry()