fix (ELF): fixed naming convention in elf header struct

This commit is contained in:
antifallobst 2023-02-28 22:17:55 +01:00
parent 44a321b7df
commit 2044bbdf36
3 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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];

View File

@ -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;