mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 01:55:22 +03:00
test: count call instructions as well
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).
This commit is contained in:
parent
2c7bd14280
commit
2de908aead
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user