Add LMA to handling of XML and debug output. LMA notr yet correclty calculated and is always equal to VMA

This commit is contained in:
2023-01-06 15:12:45 +01:00
parent eeb2027884
commit 0df385e4e7
4 changed files with 43 additions and 9 deletions

View File

@@ -63,13 +63,14 @@ int elf_patch_get_bits(elfpatch_handle_t *ep);
* @param ep Elfpatch handle
* @param[in] section section name
* @param[out] vma Virtual Memory Address. May be NULL.
* @param[out] lma Load memory address. May be NULL.
* @param[out] len Size of section in bytes. May be NULL.
* @return 0 if successful
* @return -1 if section is not found
* @return -1000 and below: Parameter error.
*/
int elf_patch_get_section_address(elfpatch_handle_t *ep, const char *section,
uint64_t *vma, uint64_t *len);
uint64_t *vma, uint64_t *lma, uint64_t *len);
/**
* @brief Compute CRC over a section in an ELF file