Lines Matching refs:leaf

3162     struct rsrc_leaf *      leaf;  member
3230 entry->value.leaf = bfd_malloc (sizeof * entry->value.leaf); in rsrc_parse_entry()
3231 if (entry->value.leaf == NULL) in rsrc_parse_entry()
3235 size = entry->value.leaf->size = bfd_get_32 (abfd, datastart + val + 4); in rsrc_parse_entry()
3236 entry->value.leaf->codepage = bfd_get_32 (abfd, datastart + val + 8); in rsrc_parse_entry()
3238 entry->value.leaf->data = bfd_malloc (size); in rsrc_parse_entry()
3239 if (entry->value.leaf->data == NULL) in rsrc_parse_entry()
3242 memcpy (entry->value.leaf->data, datastart + addr - rva_bias, size); in rsrc_parse_entry()
3363 rsrc_leaf * leaf) in rsrc_write_leaf() argument
3367 bfd_put_32 (data->abfd, leaf->size, data->next_leaf + 4); in rsrc_write_leaf()
3368 bfd_put_32 (data->abfd, leaf->codepage, data->next_leaf + 8); in rsrc_write_leaf()
3372 memcpy (data->next_data, leaf->data, leaf->size); in rsrc_write_leaf()
3375 data->next_data += ((leaf->size + 7) & ~7); in rsrc_write_leaf()
3405 rsrc_write_leaf (data, entry->value.leaf); in rsrc_write_entry()
3727 astring = a->value.leaf->data; in rsrc_merge_string_entries()
3730 bstring = b->value.leaf->data; in rsrc_merge_string_entries()
3773 new_data = bfd_malloc (a->value.leaf->size + copy_needed); in rsrc_merge_string_entries()
3778 astring = a->value.leaf->data; in rsrc_merge_string_entries()
3779 bstring = b->value.leaf->data; in rsrc_merge_string_entries()
3806 BFD_ASSERT (nstring - new_data == (signed) (a->value.leaf->size + copy_needed)); in rsrc_merge_string_entries()
3808 free (a->value.leaf->data); in rsrc_merge_string_entries()
3809 a->value.leaf->data = new_data; in rsrc_merge_string_entries()
3810 a->value.leaf->size += copy_needed; in rsrc_merge_string_entries()