mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			NUMAKER_PFM_NANO130: keep __vector_handlers symbol in LTO builds
Add a "used" attribute to __vector_handlers to fix ARMC6 build with the "-flto" flag. (Error: L6236E: No section matches selector - no section to be FIRST/LAST.) This attribute, attached to a function/variable, means that code must be emitted for the function even if it appears that the function is not referenced.pull/11874/head
							parent
							
								
									ddd2cf8920
								
							
						
					
					
						commit
						ad7f27bf77
					
				| 
						 | 
					@ -114,7 +114,7 @@ WEAK_ALIAS_FUNC(RTC_IRQHandler, Default_Handler)            // Real time clock i
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Vector table */
 | 
					/* Vector table */
 | 
				
			||||||
#if defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
 | 
					#if defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
 | 
				
			||||||
__attribute__ ((section("RESET")))
 | 
					__attribute__ ((section("RESET"), used))
 | 
				
			||||||
const uint32_t __vector_handlers[] = {
 | 
					const uint32_t __vector_handlers[] = {
 | 
				
			||||||
#elif defined(__ICCARM__)
 | 
					#elif defined(__ICCARM__)
 | 
				
			||||||
extern uint32_t CSTACK$$Limit;
 | 
					extern uint32_t CSTACK$$Limit;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue