previous | start | next

execvp

  1. Delete the existing segment structs for user segments (not kernel)
  2. Create new segment structs for the text, data, bss, and stack segments of the new program - private, copy-on-write.
  3. text and data are mapped to the corresponding parts of the executable file.
  4. the bss, stack, and heap segments demand-zero and are mapped to an anonymous file. The bss size is given in the executable file, but the stack and heap segments are initially size 0.
  5. C libraries etc. used by the executable are mapped as shared objects into a shared object segment in the virtual address space.


previous | start | next