libfc gives a '_init' function, which is called at the very
start of your program. In my opinion, the linker detects
several _init (one with the -lfc and one in the preload).
It is certainly the cause of the problem.
I will investigate and try to solve this problem.
I will keep you informed.
By the way, could you tell me what is the goal of using
LD_PRELOAD ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=146450
Please could you be more precise ?
Send me a concret example of the command
you type in order to allow me to
reproduce the problem.
Thank in advance.
Logged In: NO
If I build a instrumentet programm e.g.
foo.c:
void main() {}
gcc -finstrument-functions -o foo foo.c
then it was posible to link the profiler on demand like this
LD_PRELOAD=libfnccheck.so foo
however with v3
LD_PRELOAD=libfc.so foo
leads in starting fc_manager over and over again
Logged In: YES
user_id=146450
Oh! Yes!
I see the problem!
libfc gives a '_init' function, which is called at the very
start of your program. In my opinion, the linker detects
several _init (one with the -lfc and one in the preload).
It is certainly the cause of the problem.
I will investigate and try to solve this problem.
I will keep you informed.
By the way, could you tell me what is the goal of using
LD_PRELOAD ?