Skip to content

Commit 808b456

Browse files
committed
mimxrt10xx: Use FLASH_FIRMWARE instead of FLASH_TEXT in linker scripts
for compatibility with the build_memory_info script This change was scripted: git grep -l FLASH_TEXT | xargs sed -i s/FLASH_TEXT/FLASH_FIRMWARE/
1 parent aff42de commit 808b456

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ports/mimxrt10xx/linking/common.ld

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ MEMORY
2121
/* This can't move because the bootrom looks at this address. */
2222
FLASH_IVT (rx) : ORIGIN = 0x60001000, LENGTH = 4K
2323
/* Place the ISRs 48k in to leave room for the bootloader when it is available. */
24-
FLASH_TEXT (rx) : ORIGIN = 0x6000C000, LENGTH = code_size - 48K
24+
FLASH_FIRMWARE (rx) : ORIGIN = 0x6000C000, LENGTH = code_size - 48K
2525
FLASH_FATFS (r) : ORIGIN = 0x60100000, LENGTH = _ld_flash_size - code_size - _ld_reserved_flash_size
2626
/* Teensy uses the last bit of flash for recovery. */
2727
RESERVED_FLASH : ORIGIN = 0x60100000 + _ld_flash_size - _ld_reserved_flash_size, LENGTH = _ld_reserved_flash_size
@@ -67,15 +67,15 @@ SECTIONS
6767
) .text*) /* .text* sections (code) */
6868
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
6969
. = ALIGN(4);
70-
} > FLASH_TEXT
70+
} > FLASH_FIRMWARE
7171

7272
.ARM.exidx :
7373
{
7474
*(.ARM.exidx*)
7575
*(.gnu.linkonce.armexidx.*)
7676
_etext = .; /* define a global symbol at end of code */
7777
__etext = .; /* define a global symbol at end of code */
78-
} > FLASH_TEXT
78+
} > FLASH_FIRMWARE
7979

8080
_ld_filesystem_start = ORIGIN(FLASH_FATFS);
8181
_ld_filesystem_end = _ld_filesystem_start + LENGTH(FLASH_FATFS);
@@ -87,7 +87,7 @@ SECTIONS
8787
*flexspi_nor_flash_ops.o(.text*)
8888
*fsl_flexspi.o(.text*)
8989
. = ALIGN(4);
90-
} > OCRAM AT> FLASH_TEXT
90+
} > OCRAM AT> FLASH_FIRMWARE
9191
_ld_ocram_data_destination = ADDR(.data);
9292
_ld_ocram_data_flash_copy = LOADADDR(.data);
9393
_ld_ocram_data_size = SIZEOF(.data);
@@ -114,7 +114,7 @@ SECTIONS
114114
*(.itcm.*)
115115

116116
. = ALIGN(4);
117-
} > ITCM AT> FLASH_TEXT
117+
} > ITCM AT> FLASH_FIRMWARE
118118
_ld_itcm_destination = ADDR(.itcm);
119119
_ld_itcm_flash_copy = LOADADDR(.itcm);
120120
_ld_itcm_size = SIZEOF(.itcm);
@@ -126,7 +126,7 @@ SECTIONS
126126
*(.dtcm_data.*)
127127

128128
. = ALIGN(4);
129-
} > DTCM AT> FLASH_TEXT
129+
} > DTCM AT> FLASH_FIRMWARE
130130
_ld_dtcm_data_destination = ADDR(.dtcm_data);
131131
_ld_dtcm_data_flash_copy = LOADADDR(.dtcm_data);
132132
_ld_dtcm_data_size = SIZEOF(.dtcm_data);

0 commit comments

Comments
 (0)