fix (ELF): fixed naming convention in elf header struct
This commit is contained in:
parent
44a321b7df
commit
2044bbdf36
|
@ -29,7 +29,7 @@
|
|||
#include "utils/symbol.h"
|
||||
|
||||
typedef struct {
|
||||
elf_header_x64_T header;
|
||||
elf_header_T header;
|
||||
uint64_t num_symbols;
|
||||
symbol_T* symbols;
|
||||
void* string_table;
|
||||
|
|
|
@ -159,7 +159,7 @@ typedef struct {
|
|||
uint16_t len_section_header_entry;
|
||||
uint16_t num_section_header_entries;
|
||||
uint16_t string_section_index;
|
||||
} elf_header_x64_T;
|
||||
} elf_header_T;
|
||||
|
||||
extern string_t g_elf_target_architecture_strings [3];
|
||||
extern string_t g_elf_endianness_strings [3];
|
||||
|
|
|
@ -86,7 +86,7 @@ void elf_executable_extract_symbols(elf_executable_temp_T* executable_temp) {
|
|||
elf_executable_T* elf_executable_create(uint8_t* buffer) {
|
||||
elf_executable_temp_T executable_temp;
|
||||
executable_temp.executable = memory_allocate(sizeof(elf_executable_T));
|
||||
memory_copy(buffer, &executable_temp.executable->header, sizeof(elf_header_x64_T));
|
||||
memory_copy(buffer, &executable_temp.executable->header, sizeof(elf_header_T));
|
||||
|
||||
if (!elf_executable_validate(executable_temp.executable)) {
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue