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:
@@ -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
|
||||
|
Reference in New Issue
Block a user