Files
android_development/ndk/platforms/android-9/arch-mips/include/link.h
Raghu Gandham a8a0638b9e ndk: Add MIPS Platform files which contain C runtime headers
and sources of crt* assembler files

Change-Id: I10547e8b589d36a7937a0833d86d4406a232aa2c
Signed-off-by: Raghu Gandham <raghu@mips.com>
2012-03-27 15:45:08 -07:00

27 lines
584 B
C

/*
For building unwind-dw2-fde-glibc.c for MIPS frame unwinding,
we need to have <link.h> that defines struct dl_phdr_info,
ELFW(type), and dl_iterate_phdr().
*/
#include <sys/types.h>
#include <elf.h>
struct dl_phdr_info
{
Elf32_Addr dlpi_addr;
const char *dlpi_name;
const Elf32_Phdr *dlpi_phdr;
Elf32_Half dlpi_phnum;
};
#if _MIPS_SZPTR == 32
#define ElfW(type) Elf32_##type
#elif _MIPS_SZPTR == 64
#define ElfW(type) Elf64_##type
#endif
int
dl_iterate_phdr(int (*cb)(struct dl_phdr_info *info, size_t size, void *data),
void *data);