Skip to content

Commit

Permalink
fix elf_get_code_size prototype, and rename accordingly
Browse files Browse the repository at this point in the history
elf_get_code_size -> elf_get_code_segment
  • Loading branch information
smx-smx committed Apr 4, 2024
1 parent 14b1422 commit 33c9316
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions xzre.h
Original file line number Diff line number Diff line change
Expand Up @@ -534,13 +534,13 @@ extern Elf64_Sym *elf_symbol_get(elf_info_t *elf_info, u32 encoded_string_id, co
extern void *elf_symbol_get_addr(elf_info_t *elf_info, u32 encoded_string_id);

/**
* @brief Obtains the size of the first executable page in the given ELF file
* @brief Obtains the address and size of the first executable page in the given ELF file
*
* @param elf_info the parsed ELF context, which will be updated with the address and size of the code segment
* @param pSize variable that will hold the page-aligned segment size
* @return BOOL TRUE on success, FALSE if the executable segment wasn't found
* @param pSize variable that will be populated with the page-aligned segment size
* @return the page-aligned virtual address of the executable code segment
*/
extern BOOL elf_get_code_size(elf_info_t *elf_info, u64 *pSize);
extern u64 elf_get_code_segment(elf_info_t *elf_info, u64 *pSize);

/**
* @brief gets the fake LZMA allocator, used for imports resolution
Expand Down
2 changes: 1 addition & 1 deletion xzre.lds
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ SECTIONS {
"elf_symbol_get_addr" = ".";
*(.text.crc64_generia);

"elf_get_code_size" = ".";
"elf_get_code_segment" = ".";
*(.text.lzma_check_updata);

"secret_data_append_if_flags" = ".";
Expand Down

0 comments on commit 33c9316

Please sign in to comment.