| |||||||||||||
Technical Support On-Line Manuals RealView Linker and Utilities Guide | Creating root execution regions
If you specify an initial entry point for an image, or if the linker creates an initial entry point because you have used only one Entry point (0x00000000) lies within non root region ER_ROM To specify that a region is a root region in a scatter-loading description file you can either:
You can use the Example 5.8. Specifying the same load and execution address
LR_1 0x040000 ; load region starts at 0x40000
{ ; start of execution region descriptions
ER_RO 0x040000 ; load address = execution address
{
* (+RO) ; all RO sections (must include section with
; initial entry point)
}
... ; rest of scatter description
}
Example 5.9. Using the FIXED attribute
LR_1 0x040000 ; load region starts at 0x40000
{ ; start of execution region descriptions
ER_RO 0x040000 ; load address = execution address
{
* (+RO) ; RO sections other than those in init.o
}
ER_INIT 0x080000 FIXED ; load address and execution address of this
; execution region are fixed at 0x80000
{
init.o(+RO) ; all RO sections from init.o
}
... ; rest of scatter description
}
| ||||||||||||
| |||||||||||||