I have a project which requires a routine to be located at a particular address in internal flash, to be accessed from a legacy boot-loader program.
This address lies in the middle of the memory range.
I would like to be able to create a section either side of this address.
The default LCF entry for .text is:
.text :
{
* (.text)
. = ALIGN(0x4);
* (.rodata)
. = ALIGN(0x4);
___ROM_AT = .;
___DATA_ROM = .;
} > m_text
I have had to define the m_text section as:
| m_text | | (RX) : ORIGIN = 0x0000C410, LENGTH = 0x00053BF0 |
to accommodate the boot-loader routine section which appears directly after this section.
I would like to define another section, say m_text_2, above this section to leave my boot-loader routine section intact.
Is it possible to have the linker place .text into 2 sections automatically?
I would prefer to not have to change the address of the boot-loader routine to maintain units in the field.
Many thanks
Alex