 | BL51 User's Guide |  |
|
|
| Locating SegmentsAfter the linker combines partial segments it locates the resulting segment at a physical address. Segments are processed in order according to memory area and the order of the object files specified on the command line. Memory is allocated in the following order: - Register Banks and segments with absolute addresses.
- Segments specified in linker segment allocation directives (BANKx, BIT, CODE, DATA, PDATA, PRECEDE, STACK, XDATA).
- Segments with the BITADDRESSABLE relocation type and other BIT segments.
- All other segments with the DATA memory class.
- Segments with the IDATA memory class.
- Segments with the XDATA memory class.
- Segments with the CODE memory class and the INBLOCK relocation type.
- Other segments with the CODE memory class.
|
|