effa32b8b2f1638c56405d9ec39c3811f9c5729f
[litex.git] / litex / soc / misoc / software / include / dyld / link.h
1 #ifndef __LINK_H
2 #define __LINK_H
3
4 #include <stddef.h>
5 #include <elf.h>
6
7 #define ElfW(type) Elf32_##type
8
9 struct dl_phdr_info {
10 ElfW(Addr) dlpi_addr;
11 const char *dlpi_name;
12 const ElfW(Phdr) *dlpi_phdr;
13 ElfW(Half) dlpi_phnum;
14 };
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 extern int dl_iterate_phdr (int (*__callback) (struct dl_phdr_info *,
21 size_t, void *),
22 void *__data);
23
24 #ifdef __cplusplus
25 }
26 #endif
27
28 #endif /* __LINK_H */