aboutsummaryrefslogtreecommitdiff
path: root/gas/testscripts/dounsortsymbols
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testscripts/dounsortsymbols')
-rwxr-xr-xgas/testscripts/dounsortsymbols9
1 files changed, 9 insertions, 0 deletions
diff --git a/gas/testscripts/dounsortsymbols b/gas/testscripts/dounsortsymbols
new file mode 100755
index 0000000..8fb6db3
--- /dev/null
+++ b/gas/testscripts/dounsortsymbols
@@ -0,0 +1,9 @@
+#!/bin/sh
+# $Id$
+# objdump the symbol table, but strip off the headings and symbol
+# numbers and sort the result. Intended for use in comparing symbol
+# tables that may not be in the same order.
+
+objdump +symbols +omit-symbol-numbers $1 \
+ | sort
+#eof