Thank you for answer
i have a library libhello.so which contains this function
Quote:
void hello() {printf("hello world");}
i have a program named prog.c, his executable is prog
in the source code of prog i have not called the fuction hello
i proced like that:
Quote:
gcc -shared -ldl -fPIC hello.c libhello.so
LD_PRELOAD=/home/chercheur/libhello.so ./prog
--> not display the message hello world
If it is not possible to make this connection, is there another way to display the message of the function hello?
Thank you