Fix corrupted disassembly listing (LSS) files due to linker relaxations; pass -mrelax to the compiler to make it aware of, and able to compensate for, linker relaxations.
This commit is contained in:
		
							parent
							
								
									b2e49663f6
								
							
						
					
					
						commit
						6e8642185a
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -192,6 +192,9 @@ BASE_CC_FLAGS += -DARCH=ARCH_$(ARCH) -DBOARD=BOARD_$(BOARD) -DF_USB=$(F_USB)UL
 | 
			
		|||
ifneq ($(F_CPU),)
 | 
			
		||||
   BASE_CC_FLAGS += -DF_CPU=$(F_CPU)UL
 | 
			
		||||
endif
 | 
			
		||||
ifeq ($(LINKER_RELAXATIONS), Y)
 | 
			
		||||
BASE_CC_FLAGS += -mrelax
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
# Additional language specific compiler flags
 | 
			
		||||
BASE_C_FLAGS   := -x c -O$(OPTIMIZATION) -std=$(C_STANDARD) -Wstrict-prototypes
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue