ubuntu-buildroot/output/build/glibc-2.36-81-g4f4d7a13edfd.../elf/nodlopen2.c

16 lines
264 B
C
Raw Normal View History

2024-04-01 15:19:46 +00:00
#include <dlfcn.h>
#include <stdio.h>
int
main (void)
{
if (dlopen ("nodlopenmod2.so", RTLD_LAZY) != NULL)
{
puts ("opening \"nodlopenmod2.so\" succeeded, FAIL");
return 1;
}
puts ("opening \"nodlopenmod2.so\" failed, OK");
return 0;
}