GATE | GATE-CS-2002 | Question 45

Dynamic linking can cause security concerns because:
(A) Security is dynamic
(B) The path for searching dynamic libraries is not known till runtime
(C) Linking is insecure
(D) Crytographic procedures are not available for dynamic linking


Answer: (B)

Explanation: Static Linking and Static Libraries is the result of the linker making copy of all used library functions to the executable file. Static Linking creates larger binary files, and need more space on disk and main memory. Examples of static libraries (libraries which are statically linked) are, .a files in Linux and .lib files in Windows.
Dynamic linking and Dynamic Libraries Dynamic Linking doesn’t require the code to be copied, it is done by just placing name of the library in the binary file. The actual linking happens when the program is run, when both the binary file and the library are in memory. Examples of Dynamic libraries (libraries which are linked at run-time) are, .so in Linux and .dll in Windows.

In Dynamic Linking,the path for searching dynamic libraries is not known till runtime

 



 

Quiz of this Question



My Personal Notes arrow_drop_up


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.