mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 02:22:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			256 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
	
		
			256 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh
 | |
| tmp=$(mktemp)
 | |
| nm -n Kernel | grep -vE \\.Lubsan_data | awk '{ if ($2 != "a") print; }' | uniq > "$tmp"
 | |
| printf "%08x\n" "$(wc -l "$tmp" | awk '{print $1}')" > kernel.map
 | |
| CXXFILT="${CXXFILT:-c++filt}"
 | |
| "$CXXFILT" < "$tmp" >> kernel.map
 | |
| rm -f "$tmp"
 | 
