mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:02:44 +00:00 
			
		
		
		
	 4ef6be8212
			
		
	
	
		4ef6be8212
		
	
	
	
	
		
			
			We now use the symbols from kernel.map to link modules as they are loaded into the kernel. This is pretty fricken cool!
		
			
				
	
	
		
			6 lines
		
	
	
	
		
			178 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
	
		
			178 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
 |