Obviously, we cannot read the compressed ELF file if no bzip2 support is
present.
Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
+2019-01-09 Ulf Hermann <ulf.hermann@qt.io>
+
+ * run-readelf-compressed.sh: Skip if USE_BZIP2 not found.
+
2018-12-27 Jim Wilson <jimw@sifive.com>
* run-readelf-mixed-corenote.sh: Update with new riscv64 output.
. $srcdir/test-subr.sh
+if ! grep -q -F '#define USE_BZLIB' ${abs_top_builddir}/config.h; then
+ echo "elfutils built without bzip2 support"
+ exit 77
+fi
+
# See run-strip-reloc.sh
testfiles hello_i386.ko