// compile: gcc rundll.c -ldl -o rundll
#include <dlfcn.h>

int main (int argc, char *argv[]) {
	void *handle = dlopen ("./dll.so", RTLD_NOW);
	int (*fn)(int argc, char *argv[]) = dlsym (handle, "main");
	fn (argc, argv);
	return 0;
}
