What is the difference between executable and relocatable in elf format?

elf
Rimon Fedyuk picture Rimon Fedyuk · Jul 9, 2014 · Viewed 11.4k times · Source

What is the difference between executable file in elf format and relocatable file in elf format?

Answer

Eugeniu Rosca picture Eugeniu Rosca · Jan 7, 2015

As it can be seen in the image below, relocatable ELF goes as the input to the linker, whereas the executable ELF is the product of the linker.

Freescale SC100 development tools example diagram