gcc -ldl -rdynamic -o loader loader gcc -shared -fPIC -o shared so sha

1
2
gcc -ldl -rdynamic -o loader loader.c
gcc -shared -fPIC -o shared.so shared.c