There should be no undefined symbols in the resulting VDSO image(s). On sparc, fixed register usage can result in undefined symbols ending up in the image. To combat this, we do two things: 1) Define current_thread_info() specially when BUILD_DSO. 2) Ignore "#scratch" register undefined symbols in the output. Signed-off-by: David S. Miller <davem@davemloft.net>
		
			
				
	
	
		
			11 lines
		
	
	
		
			205 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			205 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh
 | |
| objdump="$1"
 | |
| file="$2"
 | |
| $objdump -t "$file" | grep '*UUND*' | grep -v '#scratch' > /dev/null 2>&1
 | |
| if [ $? -eq 1 ]; then
 | |
|     exit 0
 | |
| else
 | |
|     echo "$file: undefined symbols found" >&2
 | |
|     exit 1
 | |
| fi
 |