Lines Matching refs:mmo_data
527 abfd->tdata.mmo_data->max_symbol_length = (b[2] * 256 + b[3]) * 4; in mmo_object_p()
528 abfd->tdata.mmo_data->lop_stab_symbol in mmo_object_p()
529 = bfd_malloc (abfd->tdata.mmo_data->max_symbol_length + 1); in mmo_object_p()
531 if (abfd->tdata.mmo_data->lop_stab_symbol == NULL) in mmo_object_p()
535 bfd_get_filename (abfd), abfd->tdata.mmo_data->max_symbol_length); in mmo_object_p()
555 free (abfd->tdata.mmo_data->lop_stab_symbol); in mmo_object_p()
569 if (abfd->tdata.mmo_data == NULL) in mmo_mkobject()
582 abfd->tdata.mmo_data = tdata; in mmo_mkobject()
598 memcpy (obfd->tdata.mmo_data->created, ibfd->tdata.mmo_data->created, in mmo_bfd_copy_private_bfd_data()
599 sizeof (obfd->tdata.mmo_data->created)); in mmo_bfd_copy_private_bfd_data()
698 sprintf (sec_name, ".MMIX.sec.%d", abfd->tdata.mmo_data->sec_no++); in mmo_decide_section()
757 abfd->tdata.mmo_data->have_error = TRUE; in mmo_write_tetra_raw()
796 struct mmo_data_struct *mmop = abfd->tdata.mmo_data; in mmo_write_chunk()
847 if (abfd->tdata.mmo_data->byte_no != 0) in mmo_flush_chunk()
849 memset (abfd->tdata.mmo_data->buf + abfd->tdata.mmo_data->byte_no, in mmo_flush_chunk()
850 0, 4 - abfd->tdata.mmo_data->byte_no); in mmo_flush_chunk()
852 bfd_get_32 (abfd, abfd->tdata.mmo_data->buf)); in mmo_flush_chunk()
853 abfd->tdata.mmo_data->byte_no = 0; in mmo_flush_chunk()
856 return ! abfd->tdata.mmo_data->have_error; in mmo_flush_chunk()
888 && (abfd->tdata.mmo_data->byte_no == 0 || vma != *last_vmap)) in mmo_write_loc_chunk()
934 return (! abfd->tdata.mmo_data->have_error in mmo_write_loc_chunk()
1142 if (abfd->tdata.mmo_data->byte_no == 0) in mmo_get_byte()
1144 if (! abfd->tdata.mmo_data->have_error in mmo_get_byte()
1145 && bfd_bread (abfd->tdata.mmo_data->buf, 4, abfd) != 4) in mmo_get_byte()
1147 abfd->tdata.mmo_data->have_error = TRUE; in mmo_get_byte()
1155 retval = abfd->tdata.mmo_data->buf[abfd->tdata.mmo_data->byte_no]; in mmo_get_byte()
1156 abfd->tdata.mmo_data->byte_no = (abfd->tdata.mmo_data->byte_no + 1) % 4; in mmo_get_byte()
1166 abfd->tdata.mmo_data->buf[(abfd->tdata.mmo_data->byte_no++ % 4)] = value; in mmo_write_byte()
1167 if ((abfd->tdata.mmo_data->byte_no % 4) == 0) in mmo_write_byte()
1169 if (! abfd->tdata.mmo_data->have_error in mmo_write_byte()
1170 && bfd_bwrite (abfd->tdata.mmo_data->buf, 4, abfd) != 4) in mmo_write_byte()
1171 abfd->tdata.mmo_data->have_error = TRUE; in mmo_write_byte()
1197 if (abfd->tdata.mmo_data->symbols == NULL) in mmo_create_symbol()
1198 abfd->tdata.mmo_data->symbols = n; in mmo_create_symbol()
1200 abfd->tdata.mmo_data->symtail->next = n; in mmo_create_symbol()
1201 abfd->tdata.mmo_data->symtail = n; in mmo_create_symbol()
1330 if (abfd->tdata.mmo_data->have_error) in mmo_get_symbols()
1355 abfd->tdata.mmo_data->lop_stab_symbol in mmo_get_symbols()
1356 [abfd->tdata.mmo_data->symbol_position] = 0; in mmo_get_symbols()
1362 abfd->tdata.mmo_data->lop_stab_symbol); in mmo_get_symbols()
1364 abfd->tdata.mmo_data->have_error = TRUE; in mmo_get_symbols()
1371 abfd->tdata.mmo_data->lop_stab_symbol[abfd->tdata.mmo_data->symbol_position++] = c; in mmo_get_symbols()
1372 abfd->tdata.mmo_data->lop_stab_symbol[abfd->tdata.mmo_data->symbol_position] = 0; in mmo_get_symbols()
1414 if (! abfd->tdata.mmo_data->have_error in mmo_get_symbols()
1416 abfd->tdata.mmo_data->lop_stab_symbol in mmo_get_symbols()
1419 abfd->tdata.mmo_data->have_error = TRUE; in mmo_get_symbols()
1426 abfd->tdata.mmo_data->symbol_position--; in mmo_get_symbols()
1433 return ! abfd->tdata.mmo_data->have_error; in mmo_get_symbols()
1851 && bfd_bread (abfd->tdata.mmo_data->created, 4, in mmo_scan()
1939 if (abfd->tdata.mmo_data->max_symbol_length != 0 in mmo_scan()
2128 csymbols = abfd->tdata.mmo_data->csymbols; in mmo_canonicalize_symtab()
2139 for (s = abfd->tdata.mmo_data->symbols, in mmo_canonicalize_symtab()
2153 abfd->tdata.mmo_data->csymbols = csymbols; in mmo_canonicalize_symtab()
2279 if (bfd_bwrite (abfd->tdata.mmo_data->created, 4, abfd) != 4) in mmo_internal_write_header()
2310 return ! abfd->tdata.mmo_data->have_error && bfd_bwrite (buf, 8, abfd) == 8; in mmo_internal_write_post()
2458 return (! abfd->tdata.mmo_data->have_error in mmo_internal_write_section()
2472 return (! abfd->tdata.mmo_data->have_error in mmo_internal_write_section()
2475 return (! abfd->tdata.mmo_data->have_error in mmo_internal_write_section()
3041 abfd->tdata.mmo_data->byte_no = 0; in mmo_write_symbols_and_terminator()
3051 if (trie_len != (abfd->tdata.mmo_data->byte_no + 3)/4) in mmo_write_symbols_and_terminator()
3060 (abfd->tdata.mmo_data->byte_no + 3)/4); in mmo_write_symbols_and_terminator()
3067 if ((abfd->tdata.mmo_data->byte_no % 4) != 0 in mmo_write_symbols_and_terminator()
3068 || abfd->tdata.mmo_data->have_error) in mmo_write_symbols_and_terminator()
3070 memset (abfd->tdata.mmo_data->buf + (abfd->tdata.mmo_data->byte_no % 4), in mmo_write_symbols_and_terminator()
3071 0, 4 - (abfd->tdata.mmo_data->byte_no % 4)); in mmo_write_symbols_and_terminator()
3073 if (abfd->tdata.mmo_data->have_error in mmo_write_symbols_and_terminator()
3074 || bfd_bwrite (abfd->tdata.mmo_data->buf, 4, abfd) != 4) in mmo_write_symbols_and_terminator()