This libbacktrace patch only runs the two ztest tests if HAVE_ELF is true, since we only do uncompression on ELF. This should fix PR 89699. Bootstrapped and ran libbacktrace tests on x86_64-pc-linux-gnu. Committed to mainline.
Ian 2019-03-11 Ian Lance Taylor <i...@golang.org> PR libbacktrace/89669 * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if HAVE_ELF. * Makefile.in: Regenerate.
Index: Makefile.am =================================================================== --- Makefile.am (revision 269593) +++ Makefile.am (working copy) @@ -272,6 +272,8 @@ stest_alloc_LDADD = libbacktrace_alloc.l BUILDTESTS += stest_alloc +if HAVE_ELF + ztest_SOURCES = ztest.c testlib.c ztest_CFLAGS = -DSRCDIR=\"$(srcdir)\" ztest_LDADD = libbacktrace.la @@ -291,6 +293,8 @@ ztest_alloc_CFLAGS = $(ztest_CFLAGS) BUILDTESTS += ztest_alloc +endif HAVE_ELF + edtest_SOURCES = edtest.c edtest2_build.c testlib.c edtest_LDADD = libbacktrace.la