2
# compare two object files, in depth.
9
# if they cmp, we're fine.
10
if (cmp $BOTH > /dev/null)
15
# otherwise, we must look closer.
16
if (doboth $BOTH size)
25
if (doboth $BOTH objdump +header)
29
echo Header differences.
33
if (doboth $BOTH objdump +text > /dev/null)
37
echo Text differences.
38
# doboth $BOTH objdump +text
42
if (doboth $BOTH objdump +data > /dev/null)
46
echo Data differences.
47
# doboth $BOTH objdump +data
51
if (doboth $BOTH objdump +symbols > /dev/null)
55
echo -n Symbol differences...
57
if (doboth $BOTH dounsortsymbols)
59
echo but symbols are simply ordered differently.
60
# echo Now what to do about relocs'?'
63
echo and symbols differ in content.
68
# of course, if there were symbol diffs, then the reloc symbol indexes
71
if (doboth $BOTH objdump -r > /dev/null)
75
echo -n Reloc differences...
77
if (doboth $BOTH dounsortreloc)
79
echo but relocs are simply ordered differently.
81
echo and relocs differ in content.