Readout elf endianess and print error on mismatch

This commit is contained in:
2022-12-17 19:33:13 +01:00
parent 320b0ce650
commit f4f373d65d
3 changed files with 27 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ enum crc_format {
FORMAT_STRUCT,
};
elfpatch_handle_t *elf_patch_open(const char *path, bool readonly);
elfpatch_handle_t *elf_patch_open(const char *path, bool readonly, bool expect_little_endian);
/**
* @brief Check if a section is present in file