blob: 6b864171d7820c8c134daa5912f9175f6e292aa8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/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
|