Open In App

GATE | GATE-CS-2002 | Question 45

Like Article
Like
Save Article
Save
Share
Report issue
Report

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) Cryptographic 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


Last Updated : 14 Sep, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads