Advanced Assembly Language
Q93 / 100

What is ASLR and how does it interact with position-independent code (PIC)?

Correct! Well done.

Incorrect.

The correct answer is B) ASLR randomizes load addresses; PIC (using relative addressing and GOT/PLT) enables shared libraries to work correctly regardless of base address

B

Correct Answer

ASLR randomizes load addresses; PIC (using relative addressing and GOT/PLT) enables shared libraries to work correctly regardless of base address

Explanation

PIC uses RIP-relative addressing (call [rip+offset]) for code and a Global Offset Table (GOT) for data addresses, allowing the OS to load the library at any address.

Progress
93/100