Accessing import and export symbols ?
Hi everyone ,
I wanted to know the little bit working of a dynamic linker in case of a shared object. When the shared objects are loaded at the time of binding ,an executable will look for an import symbol which is to be exported by a shared library then library which is loaded also contains both its import and export symbols . Since the shared objects have no fixed load address its symbols are accessed from anywhere. Also in elf format there is no separation of import and export tables . The symbol table is maintained through GOT and PLT.
How does a linker know which of the symbols is to be accessed (export or import) without knowing the separate tables ?
|