use sc_arrays for data

This commit is contained in:
Kasper Sauramo
2025-03-20 19:00:36 +02:00
parent 32c7d794f1
commit 5bcff694f7
3 changed files with 68 additions and 101 deletions

View File

@@ -2,22 +2,24 @@
#define SYMBOLS_H_
#include "memory.h"
#include "types.h"
#include <link.h>
#include <stddef.h>
#include <stdint.h>
typedef struct {
struct sc_array_str names;
struct sc_array_ptr addresses;
} SymbolInfos;
typedef enum { CREATE_SUCCESS = 0, CREATE_FAILED } CreateResult;
sc_array_def(SymbolInfos, syms);
struct dl_phdr_info;
struct sc_array_memreg;
CreateResult hi_create_symbol_info(SymbolInfos *,
HiloadResult hi_create_symbol_info(SymbolInfos *,
struct sc_array_memreg *const regions,
struct dl_phdr_info *);
void hi_free_symbol_info(SymbolInfos *);