Skip to content

Latest commit

 

History

History
21 lines (10 loc) · 587 Bytes

File metadata and controls

21 lines (10 loc) · 587 Bytes

Question 91

Is there a connection between sections and segments?

Answer

  • Section is a static phenomenon, whereas segments are created in runtime.
  • Sections are declared in section header, segments are declared in program headers.
  • Each segment is a container for one or several sections.
  • Not all sections are put into segments (and are loaded at all -- e.g., line).
  • Segments define permissions for the virtual pages they consist of. If multiple data sections are put inside one segment, they will all be e.g. non-executable.

prev +++ next