Thanks Con Verse.
a Library contain relative address for functions.
I want to access absolute address after linker process.
for illustrate, I just create a lib calculate with 2 functions
int calc_add(int a,int b)
int calc_sub(int a,int b)
In my first project I call lib_sub => linker give me this address :
.text.calc_sub
0x1a001bdc 0x1c C:\(somewhere in my computer)\Calculate\Debug\libCalculate.a(calc.o)
0x1a001bdc calc_sub
I do the same with my second project => linker give me this address :
.text.calc_sub
0x1a000f80 0x1c C:\(somewhere in my computer)\Calculate\Debug\libCalculate.a(calc.o)
0x1a000f80 calc_sub
You can see that the location of the function are not the same.
What I want to do, export symbol of my first project (Absolute address)
and import it in my second project.
For illustrate:
first project :
.text.calc_sub
0x1a001bdc 0x1c C:\(somewhere in my computer)\Calculate\Debug\libCalculate.a(calc.o)
0x1a001bdc calc_sub
second project :
.text.calc_sub
0x1a001bdc 0x1c C:\(somewhere in my computer)\Calculate\Debug\libCalculate.a(calc.o)
0x1a001bdc calc_sub
Thanks for help.