mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			Fix IAR assembler errors on except.S
Fixes two errors produced on except.S by the IAR assembler (as seen in issue #13200). The first: "'ALIGN' is illegal. Use directive ALIGNROM or ALIGNRAM (the first parameter is raised to the power of 2, the second is a 32-bit fill value)." Fixed by changing ALIGN to ALIGNROM 2 to align to a 4-byte boundary (mirroring what ALIGN does in the ARM except.S). The second (on THUMB): "Must be placed inside a section" Fixed by moving THUMB after the SECTION directive so that it affects that section.pull/13366/head
							parent
							
								
									aa882d3e5f
								
							
						
					
					
						commit
						b7c0e89eb9
					
				| 
						 | 
					@ -36,9 +36,9 @@ FAULT_TYPE_BUS_FAULT            EQU     0x30
 | 
				
			||||||
FAULT_TYPE_USAGE_FAULT          EQU     0x40
 | 
					FAULT_TYPE_USAGE_FAULT          EQU     0x40
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        PRESERVE8
 | 
					        PRESERVE8
 | 
				
			||||||
        THUMB
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        SECTION .text:CODE:NOROOT(2)
 | 
					        SECTION .text:CODE:NOROOT(2)
 | 
				
			||||||
 | 
					        THUMB
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HardFault_Handler
 | 
					HardFault_Handler
 | 
				
			||||||
        EXPORT  HardFault_Handler
 | 
					        EXPORT  HardFault_Handler
 | 
				
			||||||
| 
						 | 
					@ -111,7 +111,7 @@ Fault_Handler_Continue2
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
        B       .
 | 
					        B       .
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
        ALIGN
 | 
					        ALIGNROM 2
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        END
 | 
					        END
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue