Responsibilities
In Unix, the loader is the handler for the system call execve
. The Unix loader's tasks include:
- validation (permissions, memory requirements etc.);
- copying the program image from the disk into main memory;
- copying the command-line arguments on the stack;
- initializing registers (e.g., the stack pointer);
- jumping to the program entry point (
_start
).
Read more about this topic: Loader (computing)