forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1654158 - Improve symbols list diffs in diffoscope tasks. r=froydnj
This helps a little with the diffs from bug 1654123. Differential Revision: https://phabricator.services.mozilla.com/D84289
- Loading branch information
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |