summaryrefslogtreecommitdiff
path: root/src/ldso/__dlsym.c
blob: 012994a77d5728d3f5d36ac72a2c0e87460f46a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <dlfcn.h>
#include "dynlink.h"
#include "libc.h"

static void *stub_dlsym(void *restrict p, const char *restrict s, void *restrict ra)
{
	__dl_seterr("Symbol not found: %s", s);
	return 0;
}

weak_alias(stub_dlsym, __dlsym);