about summary refs log tree commit diff
path: root/src/ldso/__dlsym.c
blob: bf99dff8adc9d1db18abef84b694cb5d15cf24a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <dlfcn.h>
#include "libc.h"

hidden void __dl_seterr(const char *, ...);

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);