Skip to content

Commit 98e4882

Browse files
author
Tauno Magnusson
committed
Fix: Added ALIGN(8) for __etext section. This existed in mbed-6.3.0 version. I have not verified if it is truly needed, but it is better to err on the safe side.
1 parent 5bd272a commit 98e4882

File tree

1 file changed

+5
-0
lines changed
  • targets/TARGET_STM/TARGET_STM32G4/TARGET_STM32G431xB/TOOLCHAIN_GCC_ARM

1 file changed

+5
-0
lines changed

targets/TARGET_STM/TARGET_STM32G4/TARGET_STM32G431xB/TOOLCHAIN_GCC_ARM/stm32g431xb.ld

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ 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+
. = ALIGN(8);
118+
114119
__etext = .;
115120
_sidata = .;
116121

0 commit comments

Comments
 (0)