cf679f79d41cc49088a0168905876ee2e77c08fa
[litex.git] / litex / soc / misoc / software / include / dyld / dlfcn.h
1 #ifndef __DLFCN_H
2 #define __DLFCN_H
3
4 typedef struct
5 {
6 const char *dli_fname; /* File name of defining object. */
7 void *dli_fbase; /* Load address of that object. */
8 const char *dli_sname; /* Name of nearest symbol. */
9 void *dli_saddr; /* Exact value of nearest symbol. */
10 } Dl_info;
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 extern int dl_iterate_phdr (int (*__callback) (struct dl_phdr_info *,
17 size_t, void *),
18 void *__data);
19
20 /* Fill in *INFO with the following information about ADDRESS.
21 Returns 0 iff no shared object's segments contain that address. */
22 extern int dladdr (const void *__address, Dl_info *__info);
23
24 #ifdef __cplusplus
25 }
26 #endif
27
28 #endif /* __DLFCN_H */