adplus-dvertising
frame-decoration

Question

Why does an executable file need to know in advance where it will be loaded?

a.

To prevent other executables from being loaded in the same address space

b.

To make sure the file is loaded only once

c.

To avoid cross-references in the code

d.

To generate logic that calculates the exact address of the global variable

Posted under Reverse Engineering

Answer: (d).To generate logic that calculates the exact address of the global variable Explanation:An executable file needs to know in advance where it will be loaded in order to generate logic that calculates the exact address of the global variable.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Why does an executable file need to know in advance where it will be loaded?