Linkers & Loaders – A Programmers Perspective. Agenda. Basic concepts Object Files Program Loading Linking with static libraries Linking with dynamic libraries. bar.c. foo.c. run preprocessor (cpp) & compiler proper (cc1). foo.s. bar.s. run assembler (as). foo.o. bar.o. linker.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
run preprocessor (cpp) & compiler proper (cc1)
run assembler (as)
a.out = fully linked executable
.strtabObject Files .. (Cntd)
printf.o & fopen.o
fully linked executable object file
a.outLinking with Static Libraries
libfoo.so (position independent shared object)
Partially linked executable – dependency on libfoo.so
dynamic linker (ld-linux.so)
fully linked executable in memoryShared Libraries ..(Cntd)