Remove temporary code segment and place the ELF file header and the program headers in the read-only segment.