aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/options/elf/generic/phdr.cpp
blob: 334d52c71a9cd5f450bc239c7fe3cd0a41e06b7c (plain)
1
2
3
4
5
6
7
8
9
10
#include <link.h>

#include <bits/ensure.h>
#include <mlibc/debug.hpp>

extern "C" int __dlapi_iterate_phdr(int (*)(struct dl_phdr_info*, size_t, void*), void *);

int dl_iterate_phdr(int (*callback)(struct dl_phdr_info*, size_t, void*), void *data) {
	return __dlapi_iterate_phdr(callback, data);
}