Implement xml export / import #3

Merged
mhu merged 20 commits from xml-export into master 2023-01-06 18:50:08 +01:00
2 changed files with 3 additions and 4 deletions
Showing only changes of commit 1528700d31 - Show all commits

View File

@ -708,9 +708,9 @@ int elf_patch_write_crcs_to_section(elfpatch_handle_t *ep, const char *section,
needed_space = calculate_needed_space_for_crcs(ep, format, check_start_magic, check_end_magic, crc_size_bytes,
crc_count);
print_debug("Required space for %zu CRCs %s: %zu (available: %zu)\n",
print_debug("Required space for %zu CRCs%s: %zu (available: %zu)\n",
crc_count,
(check_start_magic || check_end_magic ? "including magic values" : ""),
(check_start_magic || check_end_magic ? " including magic values" : ""),
needed_space,
output_sec_data->d_size
);

View File

@ -405,9 +405,8 @@ struct xml_crc_import *xml_import_from_file(const char *path)
ret->xml_crc_entries = sl_list_append(ret->xml_crc_entries, crc);
get_uint64_from_node_attribute(current_node, "vma", &tmp_num64);
printf("vma: %x\n", (uint32_t)tmp_num64);
get_uint64_from_node_attribute(current_node, "size", &tmp_num64);
printf("size: %x\n", (uint32_t)tmp_num64);
get_uint64_from_node_attribute(current_node, "lma", &tmp_num64);
}