Просмотр исходного кода

[SRC][GCC] Fix wrong declaration of 'g_pfnVectors' in startup files

Mete Balci 2 лет назад
Родитель
Сommit
fc83d73305

+ 2 - 1
Source/Templates/gcc/startup_stm32h503xx.s

@@ -123,7 +123,6 @@ Infinite_Loop:
 ******************************************************************************/
  	.section	.isr_vector,"a",%progbits
 	.type	g_pfnVectors, %object
-	.size	g_pfnVectors, .-g_pfnVectors
 
 
 g_pfnVectors:
@@ -278,6 +277,8 @@ g_pfnVectors:
 	.word	I3C2_ER_IRQHandler
 	.word	COMP1_IRQHandler
 
+	.size	g_pfnVectors, .-g_pfnVectors
+
 /*******************************************************************************
 *
 * Provide weak aliases for each Exception handler to the Default_Handler.

+ 2 - 1
Source/Templates/gcc/startup_stm32h562xx.s

@@ -123,7 +123,6 @@ Infinite_Loop:
 ******************************************************************************/
  	.section	.isr_vector,"a",%progbits
 	.type	g_pfnVectors, %object
-	.size	g_pfnVectors, .-g_pfnVectors
 
 
 g_pfnVectors:
@@ -275,6 +274,8 @@ g_pfnVectors:
 	.word	LPTIM5_IRQHandler
 	.word	LPTIM6_IRQHandler
 
+	.size	g_pfnVectors, .-g_pfnVectors
+
 /*******************************************************************************
 *
 * Provide weak aliases for each Exception handler to the Default_Handler.

+ 2 - 1
Source/Templates/gcc/startup_stm32h563xx.s

@@ -125,7 +125,6 @@ Infinite_Loop:
 ******************************************************************************/
   .section .isr_vector,"a",%progbits
   .type g_pfnVectors, %object
-  .size g_pfnVectors, .-g_pfnVectors
 
 g_pfnVectors:
 	.word	_estack
@@ -276,6 +275,8 @@ g_pfnVectors:
 	.word	LPTIM5_IRQHandler
 	.word	LPTIM6_IRQHandler
 
+  .size g_pfnVectors, .-g_pfnVectors
+
 /*******************************************************************************
 *
 * Provide weak aliases for each Exception handler to the Default_Handler.

+ 2 - 1
Source/Templates/gcc/startup_stm32h573xx.s

@@ -128,7 +128,6 @@ Infinite_Loop:
 ******************************************************************************/
  	.section	.isr_vector,"a",%progbits
 	.type	g_pfnVectors, %object
-	.size	g_pfnVectors, .-g_pfnVectors
 
 
 g_pfnVectors:
@@ -280,6 +279,8 @@ g_pfnVectors:
 	.word	LPTIM5_IRQHandler
 	.word	LPTIM6_IRQHandler
 
+	.size	g_pfnVectors, .-g_pfnVectors
+
 /*******************************************************************************
 *
 * Provide weak aliases for each Exception handler to the Default_Handler.