mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	[PATCH] Strip local symbols from kallsyms
Local symbols generated by gcc start with a `$'; no point in including them in the kernel. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
		
							parent
							
								
									022a4a7bbd
								
							
						
					
					
						commit
						6f00df24ee
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -116,6 +116,9 @@ static int read_symbol(FILE *in, struct sym_entry *s)
 | 
			
		|||
	else if (toupper(stype) == 'U' ||
 | 
			
		||||
		 is_arm_mapping_symbol(sym))
 | 
			
		||||
		return -1;
 | 
			
		||||
	/* exclude also MIPS ELF local symbols ($L123 instead of .L123) */
 | 
			
		||||
	else if (str[0] == '$')
 | 
			
		||||
		return -1;
 | 
			
		||||
 | 
			
		||||
	/* include the type field in the symbol name, so that it gets
 | 
			
		||||
	 * compressed together */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue