summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-06-11 19:59:24 +0700
committerhathach <[email protected]>2025-06-11 19:59:24 +0700
commit732a07ba5d48790b02e8b872cd5ec70f973a81c7 (patch)
tree3e9a895880e9fe5dc31cc16a0908f804c88b3a47
parent14124c1735507cdb40252f04a3580f80dd9952e9 (diff)
fix linker issue with clang
-rw-r--r--hw/bsp/stm32h7rs/boards/stm32h7s3nucleo/stm32h7s3xx_flash.ld17
1 files changed, 8 insertions, 9 deletions
diff --git a/hw/bsp/stm32h7rs/boards/stm32h7s3nucleo/stm32h7s3xx_flash.ld b/hw/bsp/stm32h7rs/boards/stm32h7s3nucleo/stm32h7s3xx_flash.ld
index a81763bf9..3bd7f0b89 100644
--- a/hw/bsp/stm32h7rs/boards/stm32h7s3nucleo/stm32h7s3xx_flash.ld
+++ b/hw/bsp/stm32h7rs/boards/stm32h7s3nucleo/stm32h7s3xx_flash.ld
@@ -35,16 +35,12 @@
/* Entry Point */
ENTRY(Reset_Handler)
-/* Highest address of the user mode stack */
-_estack = ORIGIN(DTCM) + LENGTH(DTCM); /* end of "DTCM" Ram type memory */
-
_Min_Heap_Size = 0x200; /* required amount of heap */
_Min_Stack_Size = 0x400; /* required amount of stack */
__FLASH_BEGIN = 0x08000000;
__FLASH_SIZE = 0x00010000;
-
__RAM_BEGIN = 0x24000000;
__RAM_SIZE = 0x4FC00;
__RAM_NONCACHEABLEBUFFER_SIZE = 0x4000;
@@ -63,6 +59,9 @@ MEMORY
FLASH (xrw) : ORIGIN = __FLASH_BEGIN, LENGTH = __FLASH_SIZE
}
+/* Highest address of the user mode stack */
+_estack = ORIGIN(DTCM) + LENGTH(DTCM); /* end of "DTCM" Ram type memory */
+
/* Sections */
SECTIONS
{
@@ -100,14 +99,14 @@ SECTIONS
. = ALIGN(4);
} >FLASH
- .ARM.extab (READONLY) : /* The READONLY keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. */
+ .ARM.extab :
{
. = ALIGN(4);
*(.ARM.extab* .gnu.linkonce.armextab.*)
. = ALIGN(4);
} >FLASH
- .ARM (READONLY) : /* The READONLY keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. */
+ .ARM :
{
. = ALIGN(4);
__exidx_start = .;
@@ -116,7 +115,7 @@ SECTIONS
. = ALIGN(4);
} >FLASH
- .preinit_array (READONLY) : /* The READONLY keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. */
+ .preinit_array :
{
. = ALIGN(4);
PROVIDE_HIDDEN (__preinit_array_start = .);
@@ -125,7 +124,7 @@ SECTIONS
. = ALIGN(4);
} >FLASH
- .init_array (READONLY) : /* The READONLY keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. */
+ .init_array :
{
. = ALIGN(4);
PROVIDE_HIDDEN (__init_array_start = .);
@@ -135,7 +134,7 @@ SECTIONS
. = ALIGN(4);
} >FLASH
- .fini_array (READONLY) : /* The READONLY keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. */
+ .fini_array :
{
. = ALIGN(4);
PROVIDE_HIDDEN (__fini_array_start = .);