I want to write an ELF file manually. How can I make my elven call standard library c. I know about the kernel search for the PT_INTERP program header and read "/lib/ld-linux.so.2", and I know about the global offset table (GOT) and the procedure binding table (PLT).
But I don’t know how the ELF file with PT_INTERP phdr, GOT, PLT will be executed and will call the C library. I need to know this in binary format to help me create a handmade ELF.
source
share