Remove ifdef STT_GNU_IFUNC test in tccrun.c
STT_GNU_IFUNC is always defined (there is no conditional definition of it) so the ifdef test for STT_GNU_IFUNC in tccrun.c has no reason to be.
This commit is contained in:
		
							parent
							
								
									c1c4040d75
								
							
						
					
					
						commit
						036d94112d
					
				
					 1 changed files with 1 additions and 5 deletions
				
			
		
							
								
								
									
										6
									
								
								tccrun.c
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								tccrun.c
									
										
									
									
									
								
							| 
						 | 
					@ -306,11 +306,7 @@ static uplong rt_printline(uplong wanted_pc)
 | 
				
			||||||
            sym < sym_end;
 | 
					            sym < sym_end;
 | 
				
			||||||
            sym++) {
 | 
					            sym++) {
 | 
				
			||||||
            type = ELFW(ST_TYPE)(sym->st_info);
 | 
					            type = ELFW(ST_TYPE)(sym->st_info);
 | 
				
			||||||
            if (type == STT_FUNC
 | 
					            if (type == STT_FUNC || type == STT_GNU_IFUNC) {
 | 
				
			||||||
#ifdef STT_GNU_IFUNC
 | 
					 | 
				
			||||||
                || type == STT_GNU_IFUNC
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
                ) {
 | 
					 | 
				
			||||||
                if (wanted_pc >= sym->st_value &&
 | 
					                if (wanted_pc >= sym->st_value &&
 | 
				
			||||||
                    wanted_pc < sym->st_value + sym->st_size) {
 | 
					                    wanted_pc < sym->st_value + sym->st_size) {
 | 
				
			||||||
                    pstrcpy(last_func_name, sizeof(last_func_name),
 | 
					                    pstrcpy(last_func_name, sizeof(last_func_name),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue