This commit is contained in:
2025-03-18 14:19:32 +02:00
parent db4b51ab2d
commit 97c5ff206a
4 changed files with 33 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
#include "hiload/symbols.h"
#include "symbols.h"
#include <dlfcn.h>
#include <elf.h>
@@ -14,13 +14,13 @@
* Will clear and free the given SymbolInfo struct. Allocates enough memory to
* hold found symbols.
*/
CreateResult he_create_symbol_info(SymbolInfos *symbols,
CreateResult hi_create_symbol_info(SymbolInfos *symbols,
struct dl_phdr_info *info) {
if (!symbols)
return CREATE_FAILED;
he_free_symbol_info(symbols);
hi_free_symbol_info(symbols);
for (int i = 0; i < info->dlpi_phnum; i++) {
const ElfW(Phdr) *phdr = &info->dlpi_phdr[i];
@@ -103,7 +103,7 @@ CreateResult he_create_symbol_info(SymbolInfos *symbols,
return CREATE_SUCCESS;
}
void he_free_symbol_info(SymbolInfos *symbols) {
void hi_free_symbol_info(SymbolInfos *symbols) {
for (size_t i = 0; i < symbols->count; i++) {
free(symbols->names[i]);
}