mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-20 00:46:30 +08:00
Sebastien Bourdeauducq
3d8159ceb5
This allows multiple functions to be defined, with the main one not necessarily starting at 0.
15 lines
378 B
C
15 lines
378 B
C
#ifndef __ELF_LOADER_H
|
|
#define __ELF_LOADER_H
|
|
|
|
struct symbol {
|
|
char *name;
|
|
void *target;
|
|
};
|
|
|
|
void *find_symbol(const struct symbol *symbols, const char *name);
|
|
|
|
typedef void * (*symbol_resolver)(const char *name);
|
|
void *load_elf(symbol_resolver resolver, const char *entry_name, void *elf_data, int elf_length, void *dest, int dest_length);
|
|
|
|
#endif /* __ELF_LOADER_H */
|