You copied the Doc URL to your clipboard.

Bare metal and DLL-like standard memory model

Base Platform Application Binary Interface (BPABI) files have a standard memory model that is described in the BPABI specification.

When you use the --bpabi command-line option, the linker automatically applies the standard memory model and ignores any scatter file that you specify on the command-line. This is equivalent to the following image layout:

LR_1 <read-only base address>
{
    ER_RO  +0
    {
        *(+RO)
    }
}
LR_2 <read-write base address>
{
    ER_RW  +0
    {
        *(+RW)
    }
    ER_ZI  +0
    {
        *(+ZI)
    }
}

Customization of the bare metal and DLL-like memory model

If you specify the option --ropi, LR_1 is marked as position-independent. Likewise, if you specify the option --rwpi, LR_2 is marked as position-independent.

Note

In most cases, you must specify the --ro_base and --rw_base switches, because the default values, 0x8000 and 0 respectively, might not be suitable for your platform. These addresses do not have to reflect the addresses to which the image is relocated at run time.

If you require a more complicated memory layout, use the Base Platform linking model, --base_platform.

Related concepts

Was this page helpful? Yes No