diff options
| author | Greg Steuck <greg@nest.cx> | 2024-03-21 10:22:59 -0700 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-03-25 15:38:29 +0000 |
| commit | cc1f7e7eff5c7f35b3f3c8f1f00e44fb03de74fb (patch) | |
| tree | 8cba39bebe5477a5ea0f5a42c7772af4df763852 /tools | |
| parent | 5f4fe4debf19df557608f1b9d61e14c33d5dab82 (diff) | |
tools: substitute ubsan_minimal for fuzzer_test in create-openbsd
Reliance on -fsanitize-coverage=trace-pc makes clang look for full
ubsan libraries. The only one currently available on OpenBSD is
ubsan_minimal. We temporarily use it in place of ubsan_standalone.
The ubsan_standalone_cxx library seems currently not necessary
and so an empty file works in its stead.
This is a temporary measure until I figure out the best course of
action for making fsanitize-coverage=trace-pc work out of the box
on OpenBSD.
This should help with one of the issues we just discovered having
replaced the base OS image we use to run syzkaller on OpenBSD.
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/create-openbsd-gce-ci.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/create-openbsd-gce-ci.sh b/tools/create-openbsd-gce-ci.sh index d77dbc920..bdba48b52 100755 --- a/tools/create-openbsd-gce-ci.sh +++ b/tools/create-openbsd-gce-ci.sh @@ -40,6 +40,10 @@ echo 'permit keepenv nopass syzkaller as root' > /etc/doas.conf mkdir /syzkaller echo '/dev/sd1a /syzkaller ffs rw,noauto 1 0' >> /etc/fstab + +mkdir -p /usr/lib/clang/16/lib/openbsd +ln -s /usr/lib/clang/16/lib/libclang_rt.ubsan_minimal.a /usr/lib/clang/16/lib/openbsd/libclang_rt.ubsan_standalone-x86_64.a +touch /usr/lib/clang/16/lib/openbsd/libclang_rt.ubsan_standalone_cxx-x86_64.a EOF cat >etc/installurl <<EOF |
