Skip to content

Commit 267f32c

Browse files
committed
STM32 GCC Unspecified RTOS error
#12690 on 5.15 branch
1 parent 61c5c74 commit 267f32c

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

targets/TARGET_STM/TARGET_STM32L5/TARGET_STM32L552xx/TOOLCHAIN_GCC_ARM/stm32l552xx.ld

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,7 @@ SECTIONS
111111
} > FLASH
112112
__exidx_end = .;
113113

114-
/* Location counter can end up 2byte aligned with narrow Thumb code but
115-
__etext is assumed by startup code to be the LMA of a section in RAM
116-
which must be 8-byte aligned */
117-
__etext = ALIGN (8);
114+
__etext = .;
118115
_sidata = .;
119116

120117
.data : AT (__etext)

targets/TARGET_STM/TARGET_STM32L5/TARGET_STM32L562xx/TOOLCHAIN_GCC_ARM/stm32l562xx.ld

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,7 @@ SECTIONS
111111
} > FLASH
112112
__exidx_end = .;
113113

114-
/* Location counter can end up 2byte aligned with narrow Thumb code but
115-
__etext is assumed by startup code to be the LMA of a section in RAM
116-
which must be 8-byte aligned */
117-
__etext = ALIGN (8);
114+
__etext = .;
118115
_sidata = .;
119116

120117
.data : AT (__etext)

0 commit comments

Comments
 (0)