mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:22:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			6 lines
		
	
	
	
		
			188 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
	
		
			188 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh
 | |
| tmp=$(mktemp)
 | |
| nm -n Kernel | awk '{ if ($2 != "a") print; }' | uniq > "$tmp"
 | |
| printf "%08x\n" "$(wc -l "$tmp" | cut -f1 -d' ')" > kernel.map
 | |
| cat "$tmp" >> kernel.map
 | |
| rm -f "$tmp"
 | 
