3,714 views
5 votes
5 votes
Does Dynamic loading require special support from the operating system.

2 Answers

7 votes
7 votes
Dynamic Loading and overlays does not require any special support from the operating system.they can be implemented completely by the user.

Dynamic Linking generally requires Hardware support
0 votes
0 votes

I have read some articles on dynamic linking and shared library. And as far as i have understood the concept 'Dynamic loading requires support from kernel. The process goes like following:

prog invoked on bash-> bash forks itself and replaces its address space with the program to run ->The kernel verifies whether the required library resides in the memory. If not, it will load the file into memory and does the relocation of library symbols-> It then invokes the dynamic linker to resolve unresolved symbols of the program (referring to stub) ->Then the control transfers to our program main
If I am wrong please do share your knowledge.

Related questions

0 votes
0 votes
2 answers
2
Shubhanshu asked Sep 11, 2017
1,998 views
In Dynamic Loading:- We load the particular module into the main memory when it is needed.In Demand Paging:- We load the particular page into the main memory when it is n...
0 votes
0 votes
3 answers
3
0 votes
0 votes
1 answer
4
Deepalitrapti asked Aug 13, 2018
213 views