litex/software/include/dyld/link.h
whitequark b5048f6cf1 Add headers for the dynamic linker interface.
These are required for libunwind to discover
the exception frame headers.
2015-07-26 12:53:18 +03:00

28 lines
512 B
C

#ifndef __LIMITS_H
#define __LIMITS_H
#include <stddef.h>
#include <elf.h>
#define ElfW(type) Elf32_##type
struct dl_phdr_info {
ElfW(Addr) dlpi_addr;
const char *dlpi_name;
const ElfW(Phdr) *dlpi_phdr;
ElfW(Half) dlpi_phnum;
};
#ifdef __cplusplus
extern "C" {
#endif
extern int dl_iterate_phdr (int (*__callback) (struct dl_phdr_info *,
size_t, void *),
void *__data);
#ifdef __cplusplus
}
#endif
#endif /* __LIMITS_H */