forked from KolibriOS/kolibrios
24 lines
462 B
C
Executable File
24 lines
462 B
C
Executable File
#ifndef __LOADER_H
|
|
#define __LOADER_H
|
|
|
|
#include<stdio.h>
|
|
#include<stdlib.h>
|
|
#include<string.h>
|
|
#include<errno.h>
|
|
#include<mcoff/mcoff.h>
|
|
|
|
unsigned long kexport_lookup(char * name);
|
|
|
|
typedef struct {
|
|
coffobj_t * obj;
|
|
void (* entry_point)(void);
|
|
} dll_t;
|
|
|
|
SYMENT * dl_find_dll_symbol(char * name,dll_t ** xdll);
|
|
unsigned long dl_get_ref(char * symname);
|
|
void init_dll(void);
|
|
dll_t * load_dll(char * name);
|
|
int relocate_dlls(void);
|
|
|
|
#endif
|