Skip to content
Related Articles
Open in App
Not now

Related Articles

GATE | GATE-CS-2002 | Question 45

Improve Article
Save Article
  • Difficulty Level : Basic
  • Last Updated : 14 Sep, 2021
Improve Article
Save Article

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

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!