CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
89 lines
1.3 KiB
Bash
Executable File
89 lines
1.3 KiB
Bash
Executable File
#!/bin/sh
|
|
# 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
|