how can I execute a function which is in a object file throgh libbfd!
Hi guys:
It like this:
I hava a source file add.c
int add(int a,int b){
return a+b;
}
then i compile it, gcc -c add.c
now we get a object file add.o,
I want to execute the function add(int a,int b)(the functinon in the object file add.o)
how can i use libbfd to execute it?
thank you !
Last edited by pet5800; 09-10-2010 at 02:51 AM.
|