aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/as/testscripts/doobjcmp
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2002-09-17 01:54:56 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2002-09-17 01:54:56 +0000
commitc696fb50b35e26585021e2a4dca6d4c22a50ab36 (patch)
treeb6b6d8cb20d6e54de2ab2460a8990997c9ba68c2 /gnu/usr.bin/as/testscripts/doobjcmp
parent66422f5b7a1a6055f0b2358268eb902aab6e2e3e (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/as/testscripts/doobjcmp')
-rwxr-xr-xgnu/usr.bin/as/testscripts/doobjcmp89
1 files changed, 0 insertions, 89 deletions
diff --git a/gnu/usr.bin/as/testscripts/doobjcmp b/gnu/usr.bin/as/testscripts/doobjcmp
deleted file mode 100755
index 6297ea4116ca..000000000000
--- a/gnu/usr.bin/as/testscripts/doobjcmp
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/sh
-# $FreeBSD$
-# compare two object files, in depth.
-
-x=$1
-y=$2
-BOTH="$1 $2"
-
-
-# if they cmp, we're fine.
-if (cmp $BOTH > /dev/null)
-then
- exit 0
-fi
-
-# otherwise, we must look closer.
-if (doboth $BOTH size)
-then
- echo Sizes ok.
-else
- echo Sizes differ:
- size $BOTH
-# exit 1
-fi
-
-if (doboth $BOTH objdump +header)
-then
- echo Headers ok.
-else
- echo Header differences.
-# exit 1
-fi
-
-if (doboth $BOTH objdump +text > /dev/null)
-then
- echo Text ok.
-else
- echo Text differences.
-# doboth $BOTH objdump +text
-# exit 1
-fi
-
-if (doboth $BOTH objdump +data > /dev/null)
-then
- echo Data ok.
-else
- echo Data differences.
-# doboth $BOTH objdump +data
-# exit 1
-fi
-
-if (doboth $BOTH objdump +symbols > /dev/null)
-then
- echo Symbols ok.
-else
- echo -n Symbol differences...
-
- if (doboth $BOTH dounsortsymbols)
- then
- echo but symbols are simply ordered differently.
-# echo Now what to do about relocs'?'
-# exit 1
- else
- echo and symbols differ in content.
- exit 1
- fi
-fi
-
-# of course, if there were symbol diffs, then the reloc symbol indexes
-# will be off.
-
-if (doboth $BOTH objdump -r > /dev/null)
-then
- echo Reloc ok.
-else
- echo -n Reloc differences...
-
- if (doboth $BOTH dounsortreloc)
- then
- echo but relocs are simply ordered differently.
- else
- echo and relocs differ in content.
- exit 1
- fi
-fi
-
-exit
-
-# eof