Lines Matching refs:buf
332 bfd_byte buf[4]; member
752 bfd_byte buf[4]; in mmo_write_tetra_raw() local
754 bfd_put_32 (abfd, value, buf); in mmo_write_tetra_raw()
756 if (bfd_bwrite (buf, 4, abfd) != 4) in mmo_write_tetra_raw()
803 mmop->buf[mmop->byte_no++] = *loc++; in mmo_write_chunk()
809 mmo_write_tetra (abfd, bfd_get_32 (abfd, mmop->buf)); in mmo_write_chunk()
832 memcpy (mmop->buf, loc, len); in mmo_write_chunk()
849 memset (abfd->tdata.mmo_data->buf + abfd->tdata.mmo_data->byte_no, in mmo_flush_chunk()
852 bfd_get_32 (abfd, abfd->tdata.mmo_data->buf)); in mmo_flush_chunk()
979 bfd_byte buf[4]; in mmo_get_spec_section() local
997 if (bfd_bread (buf, 4, abfd) != 4) in mmo_get_spec_section()
1000 if (buf[0] == LOP) in mmo_get_spec_section()
1002 if (buf[1] != LOP_QUOTE) in mmo_get_spec_section()
1005 if (bfd_bread (buf, 4, abfd) != 4) in mmo_get_spec_section()
1011 secname_length = bfd_get_32 (abfd, buf) * 4; in mmo_get_spec_section()
1040 if (bfd_bread (buf, 4, abfd) != 4 in mmo_get_spec_section()
1041 || (buf[0] == LOP in mmo_get_spec_section()
1042 && (buf[1] != LOP_QUOTE || bfd_bread (buf, 4, abfd) != 4))) in mmo_get_spec_section()
1045 flags = bfd_get_32 (abfd, buf); in mmo_get_spec_section()
1048 if (bfd_bread (buf, 4, abfd) != 4 in mmo_get_spec_section()
1049 || (buf[0] == LOP in mmo_get_spec_section()
1050 && (buf[1] != LOP_QUOTE || bfd_bread (buf, 4, abfd) != 4))) in mmo_get_spec_section()
1053 section_length = (bfd_vma) bfd_get_32 (abfd, buf) << 32; in mmo_get_spec_section()
1057 if (bfd_bread (buf, 4, abfd) != 4 in mmo_get_spec_section()
1058 || (buf[0] == LOP in mmo_get_spec_section()
1059 && (buf[1] != LOP_QUOTE || bfd_bread (buf, 4, abfd) != 4))) in mmo_get_spec_section()
1062 section_length |= (bfd_vma) bfd_get_32 (abfd, buf); in mmo_get_spec_section()
1069 if (bfd_bread (buf, 4, abfd) != 4 in mmo_get_spec_section()
1070 || (buf[0] == LOP in mmo_get_spec_section()
1071 && (buf[1] != LOP_QUOTE || bfd_bread (buf, 4, abfd) != 4))) in mmo_get_spec_section()
1074 section_vma = (bfd_vma) bfd_get_32 (abfd, buf) << 32; in mmo_get_spec_section()
1077 if (bfd_bread (buf, 4, abfd) != 4 in mmo_get_spec_section()
1078 || (buf[0] == LOP in mmo_get_spec_section()
1079 && (buf[1] != LOP_QUOTE || bfd_bread (buf, 4, abfd) != 4))) in mmo_get_spec_section()
1082 section_vma |= (bfd_vma) bfd_get_32 (abfd, buf); in mmo_get_spec_section()
1145 && bfd_bread (abfd->tdata.mmo_data->buf, 4, abfd) != 4) in mmo_get_byte()
1155 retval = abfd->tdata.mmo_data->buf[abfd->tdata.mmo_data->byte_no]; in mmo_get_byte()
1166 abfd->tdata.mmo_data->buf[(abfd->tdata.mmo_data->byte_no++ % 4)] = value; in mmo_write_byte()
1170 && bfd_bwrite (abfd->tdata.mmo_data->buf, 4, abfd) != 4) in mmo_write_byte()
1562 bfd_byte buf[8]; in mmo_scan() local
1572 while ((nbytes_read = bfd_bread (buf, 4, abfd)) == 4) in mmo_scan()
1574 if (buf[0] == LOP) in mmo_scan()
1576 unsigned int y = bfd_get_8 (abfd, buf + 2); in mmo_scan()
1577 unsigned int z = bfd_get_8 (abfd, buf + 3); in mmo_scan()
1581 if ((buf[1] != LOP_QUOTE || y != 0 || z != 1) in mmo_scan()
1589 switch (buf[1]) in mmo_scan()
1594 bfd_get_filename (abfd), buf[1]); in mmo_scan()
1608 if (bfd_bread (buf, 4, abfd) != 4) in mmo_scan()
1612 mmo_xore_32 (sec, vma, bfd_get_32 (abfd, buf)); in mmo_scan()
1623 if (bfd_bread (buf, 4, abfd) != 4) in mmo_scan()
1626 vma += bfd_get_32 (abfd, buf); in mmo_scan()
1631 if (bfd_bread (buf, 8, abfd) != 8) in mmo_scan()
1634 vma += bfd_get_64 (abfd, buf); in mmo_scan()
1672 if (bfd_bread (buf, 4, abfd) != 4) in mmo_scan()
1675 p += bfd_get_32 (abfd, buf); in mmo_scan()
1680 if (bfd_bread (buf, 8, abfd) != 8) in mmo_scan()
1683 p += bfd_get_64 (abfd, buf); in mmo_scan()
1743 if (bfd_bread (buf, 4, abfd) != 4) in mmo_scan()
1746 delta = bfd_get_32 (abfd, buf); in mmo_scan()
1752 if (buf[0] == 0) in mmo_scan()
1754 else if (buf[0] == 1) in mmo_scan()
1760 bfd_get_filename (abfd), buf[0]); in mmo_scan()
1856 if (bfd_bread (buf, 4, abfd) != 4) in mmo_scan()
1873 if (bfd_bread (buf, 8, abfd) != 8) in mmo_scan()
1876 first_octa = bfd_get_64 (abfd, buf); in mmo_scan()
1898 if (bfd_bread (buf, 8, abfd) != 8) in mmo_scan()
1901 startaddr_octa = bfd_get_64 (abfd, buf); in mmo_scan()
1987 mmo_xore_32 (sec, vma & ~3, bfd_get_32 (abfd, buf)); in mmo_scan()
2294 bfd_byte buf[8]; in mmo_internal_write_post() local
2308 bfd_put_64 (abfd, bfd_get_start_address (abfd), buf); in mmo_internal_write_post()
2310 return ! abfd->tdata.mmo_data->have_error && bfd_bwrite (buf, 8, abfd) == 8; in mmo_internal_write_post()
2865 bfd_byte buf[4]; in mmo_write_symbols_and_terminator() local
3044 bfd_put_32 (abfd, (LOP << 24) | (LOP_STAB << 16), buf); in mmo_write_symbols_and_terminator()
3045 if (bfd_bwrite (buf, 4, abfd) != 4) 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()
3074 || bfd_bwrite (abfd->tdata.mmo_data->buf, 4, abfd) != 4) in mmo_write_symbols_and_terminator()
3078 bfd_put_32 (abfd, (LOP << 24) | (LOP_END << 16) | trie_len, buf); in mmo_write_symbols_and_terminator()
3079 return bfd_bwrite (buf, 4, abfd) == 4; in mmo_write_symbols_and_terminator()