|
|||||||||||
|
Technical Support On-Line Manuals Linker User Guide |
Linker User GuideAutomatic placement of __at sections
The automatic placement of NoteYou cannot use When linking with the All linker A compatible region is one where:
The following example shows the sections Example 20. Placement of the variables in C or C++ code // place the RW variable in a section called Example 21. Automatic placement of
LR1 0x0
{
ER_RO 0x0 0x2000
{
*(+RO) ; .ARM.__at_0x0 lies within the bounds of ER_RO
}
ER_RW 0x2000 0x2000
{
*(+RW) ; .ARM.__at_0x2000 lies within the bounds of ER_RW
}
ER_ZI 0x4000 0x2000
{
*(+ZI) ; .ARM.__at_0x4000 lies within the bounds of ER_ZI
}
}
; the linker creates a load and execution region for the __at section
; .ARM.__at_0x8000 because it lies outside all candidate regions.
| ||||||||||
|
|||||||||||