Skip to content

Commit 727e2e1

Browse files
committed
stm32h747: linker: set bootloader_version sectionat the end of flash
1 parent a97d372 commit 727e2e1

File tree

1 file changed

+6
-6
lines changed
  • targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_STM32H747xI_CM7/TOOLCHAIN_GCC_ARM

1 file changed

+6
-6
lines changed

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_STM32H747xI_CM7/TOOLCHAIN_GCC_ARM/STM32H747xI_CM7.ld

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,22 +113,22 @@ SECTIONS
113113
*(SORT(.dtors.*))
114114
*(.dtors)
115115

116-
#if (defined(MCUBOOT_BOOTLOADER_BUILD) || defined(BOOTLOADER_BUILD)) && (defined(TARGET_PORTENTA_H7_M7) || defined(TARGET_NICLA_VISION) || defined(TARGET_OPTA))
116+
*(.rodata*)
117+
KEEP(*(.eh_frame*))
118+
117119
*ltrans0*.o(.rodata*)
118120
*ltrans1*.o(.rodata*)
119121
*ltrans2*.o(.rodata*)
120122
*ltrans3*.o(.rodata*)
121123
*ltrans4*.o(.rodata*)
122124

125+
*lib*.o(.rodata*)
126+
127+
#if (defined(MCUBOOT_BOOTLOADER_BUILD) || defined(BOOTLOADER_BUILD)) && (defined(TARGET_PORTENTA_H7_M7) || defined(TARGET_NICLA_VISION) || defined(TARGET_OPTA))
123128
. = ABSOLUTE(0x0801F000);
124129
KEEP(*(.bootloader_version))
125-
126-
*lib*.o(.rodata*)
127130
#endif
128131

129-
*(.rodata*)
130-
131-
KEEP(*(.eh_frame*))
132132
} > FLASH
133133

134134
.ARM.extab :

0 commit comments

Comments
 (0)