This preview shows page 1. Sign up to view the full content.
Unformatted text preview: ne the same symbol, and the rules that linkers use for silently resolving these multiple deﬁnitions can introduce subtle bugs in user programs. Multiple object ﬁles can be concatenated in a single static library. Linkers use libraries to resolve symbol references in other object modules. The left-to-right sequential scan that many linkers use to resolve symbol references is another source of confusing link-time errors. Loaders map the contents of executable ﬁles into memory and run the program. Linkers can also produce partially linked executable object ﬁles with unresolved references to the routines and data deﬁned in shared library. At load time, the loader maps the partially linked executable into memory and then calls a dynamic linker, which completes the linking task by loading the shared library and relocating the references in the program. Shared libraries that are compiled as position-independent code can be loaded anywhere and shared at run time by multiple processes. Applications can also u...
View Full Document
This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.
- Spring '10
- The American