[libbpf] point the script to elfutils-0.186 (#6932)

Hopefully it should be more stable than elfutils-0.185
with a bunch of commits on top of it
This commit is contained in:
Evgeny Vereshchagin 2021-11-30 14:01:23 +03:00 committed by GitHub
parent bec389762b
commit 3c1abd23c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -56,14 +56,15 @@ mkdir -p "$OUT"
export LIB_FUZZING_ENGINE=${LIB_FUZZING_ENGINE:--fsanitize=fuzzer}
# Ideally libbelf should be built using release tarballs available
# at https://sourceware.org/elfutils/ftp/. Unfortunately the latest
# release fails to compile with LDFLAGS enabled due to https://bugs.gentoo.org/794601
# (which was fixed in https://sourceware.org/git/?p=elfutils.git;a=commit;h=c6e1f664254a8a)
# at https://sourceware.org/elfutils/ftp/. Unfortunately sometimes they
# fail to compile (for example, elfutils-0.185 fails to compile with LDFLAGS enabled
# due to https://bugs.gentoo.org/794601) so let's just point the script to
# commits referring to versions of libelf that actually can be built
rm -rf elfutils
git clone git://sourceware.org/git/elfutils.git
(
cd elfutils &&
git checkout a83fe48 &&
git checkout 983e86fd89e8bf02f2d27ba5dce5bf078af4ceda &&
git log --oneline -1 &&
# ASan isn't compatible with -Wl,--no-undefined: https://github.com/google/sanitizers/issues/380