|
|||||||||||
|
Technical Support On-Line Manuals Linker User Guide |
Linker User GuideDemand paging
In operating systems that support virtual memory an ELF file can be loaded by mapping the ELF files into the address space of the process loading the file. When a virtual address in a page that is mapped to the file is accessed, the operating system loads that page from disk. ELF files that are to be used this way must conform to a certain format. Use the The basic constraints on the ELF file are:
When
This is an example of a demand paged scatter file:
LR1 GetPageSize() + SizeOfHeaders()
{
ER_RO +0
{
*(+RO)
}
ER_RW +GetPageSize()
{
*(+RW)
}
ER_ZI +0
{
*(+ZI)
}
}
| ||||||||||
|
|||||||||||