1#include <stdio.h>
2#include <stdlib.h>
3#include <dlfcn.h>
4
5int
6main (void)
7{
8 void *handle = dlopen (file: "nodel2mod3.so", RTLD_LAZY);
9 if (handle == NULL)
10 {
11 printf (format: "%s\n", dlerror ());
12 exit (status: 1);
13 }
14 dlclose (handle: handle);
15 exit (status: 1);
16}
17

Provided by KDAB

Privacy Policy
Update your C++ knowledge – Modern C++11/14/17 Training
Find out more

source code of glibc/elf/nodelete2.c