mirror of
				https://github.com/mozilla/gecko-dev.git
				synced 2025-11-04 10:18:41 +02:00 
			
		
		
		
	This helps a little with the diffs from bug 1654123. Differential Revision: https://phabricator.services.mozilla.com/D84289
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			377 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			377 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
case "$1 $2" in
 | 
						|
"--wide --symbols")
 | 
						|
    # When called with --wide --symbols, we remove the first column (which
 | 
						|
    # is essentially a line number that is not very useful), and then sort,
 | 
						|
    # which will order symbols by address, making a diff more useful.
 | 
						|
    /usr/bin/readelf "$@" | awk -F: '{print $2}' | sort
 | 
						|
    ;;
 | 
						|
*)
 | 
						|
    exec /usr/bin/readelf "$@"
 | 
						|
    ;;
 | 
						|
esac
 |