Question: how elf file is executed?
Answer: The execution of a program starts inside the kernel, in the exec("/bin/wc",...) system call takes a path to the executable file. The kernel reads the ELF header and the program header table (PHT), followed by lots of sanity checks. The kernel then loads the parts specified in the LOAD directives in the PHT into memory.