adplus-dvertising
frame-decoration

Question

What happens when two executables are statically linked to the same library?

a.

The library code is loaded into memory twice

b.

The operating system detects that the library code is already loaded and maps it into each address space

c.

The library code is not loaded into memory

d.

The operating system has no way of knowing that the two executables contain parts that are identical

Posted under Reverse Engineering

Answer: (a).The library code is loaded into memory twice Explanation:When two executables are statically linked to the same library, the library code will essentially be loaded into memory twice, because the operating system will have no idea that the two executables contain parts that are identical.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What happens when two executables are statically linked to the same library?

Similar Questions

Discover Related MCQs

Q. What is a DLL?

Q. What is the benefit of using DLLs in a program?

Q. What is the difference between static linking and runtime linking?

Q. Which linking method is typically employed by most application programs?

Q. Why is static linking easier to deal with from a reversing standpoint?

Q. What is the purpose of the DOS header in a PE file?

Q. What does the e_lfanew member in the DOS header point to?

Q. Where are most of the interesting contents in a PE header stored?

Q. What is the purpose of the DataDirectory in a PE header?

Q. Are pointers within the PE header actual pointers or RVAs?

Q. What are the mechanisms that enable the dynamic linking process of executables?

Q. What is the purpose of the import table in a module?

Q. How are the addresses of the imported functions found during runtime?

Q. What is the purpose of the IAT in a module?

Q. What does the linker do to resolve each entry in the IAT?

Q. What are the Optional Directories in the Portable Executable File Format?

Q. What is the Export Table in the Portable Executable File Format?

Q. What is the Import Table in the Portable Executable File Format?

Q. What is the Resource Table in the Portable Executable File Format?

Q. What is the Import Address Table (IAT) in the Portable Executable File Format?