Demand 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 --paged command-line option to enable demand paging mode. This helps produce ELF files that can be demand paged efficiently.

Note

ELF files produced with the --sysv option are already demand-paged compliant. --arm_linux also implies --sysv.

The basic constraints on the ELF file are:

When --paged is on:

Show/hideExample

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)
    }
}

Show/hideSee also

Copyright © 2010-2011 ARM. All rights reserved.ARM DUI 0474E
Non-ConfidentialID071611