Add reading of LMA

This commit is contained in:
Mario Hüttel 2023-01-06 16:17:55 +01:00
parent 376ef75964
commit 1528700d31
2 changed files with 3 additions and 4 deletions

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);
}