|
|
发表于 2005-10-10 16:34:44
|
显示全部楼层
Post by rickxbx
When you compile(actually static link time),the compiler(gcc) will put some information in the exectable file(elf) to help find the real address of the function in the shared object at runtime, so you need to tell the compiler where, i.e. from which shared object file,to find the function,
btw: appreiate will spell like this, appreciate 
ps: Thx for providing such a chance for me to improve my poor English
Oh my goodness. I always get stunned when reading alphabetic language. Reading Chinese is much more comfortable.
By the way, I wonder whether the work that you mentioned, i.e. "put some info in the elf file to find the real address of the function in the shared object file at runtime", is done by the very, narrow-sense compiler or by the linker. I guess that is the job of the linker.
Mr. Banzhu, if I ever made any spelling error, please point it out, just like you did above |
|