]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: count call instructions as well
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 10 Feb 2021 09:16:09 +0000 (10:16 +0100)
committerEvgeny Vereshchagin <evvers@ya.ru>
Wed, 10 Feb 2021 17:20:31 +0000 (20:20 +0300)
Binaries on the latest Arch Linux use `call` instructions instead of
`callq`, which breaks the ASan detection and eventually the image
building process (due to insufficient space).

test/test-functions

index df6022982c2cdc0956b42a3c325cd47423c7361a..44696aff3b71aae0187cede15643ba4741274223 100644 (file)
@@ -182,7 +182,7 @@ is_built_with_asan() {
     fi
 
     # Borrowed from https://github.com/google/oss-fuzz/blob/cd9acd02f9d3f6e80011cc1e9549be526ce5f270/infra/base-images/base-runner/bad_build_check#L182
-    local _asan_calls=$(objdump -dC $SYSTEMD_JOURNALD | egrep "callq\s+[0-9a-f]+\s+<__asan" -c)
+    local _asan_calls=$(objdump -dC $SYSTEMD_JOURNALD | egrep "callq?\s+[0-9a-f]+\s+<__asan" -c)
     if (( $_asan_calls < 1000 )); then
         return 1
     else