What is Position-independent executable?

An executable whose main program is also built as position-independent code. It runs at any address, so ASLR can randomize the main program's code too.

Field: Linkers, Loaders & Executables

Questions that mention Position-independent executable (1)

  1. What is the main reason to build an executable as a PIE (position-independent executable)?

Related terms

Address space layout randomization (ASLR) Position-independent code BSS section Dynamic linker Dynamic linking Entry point Executable and Linkable Format (ELF) Global offset table Heap memory Linker

Back to the glossary