Skip to content

-fsanitize=fuzzer-no-link without any other sanitizer seems to not work on shared libraries ? #111800

Open
@VA-GS

Description

@VA-GS

Hello, when using -fsanitize=fuzzer-no-link and no other fuzzer while linking an executable on Linux, I see libclang_rt.ubsan_standalone-x86_64.a being linked (from -Wl,--verbose logs). When I instead link a .so, I don't see that .a being linked and __sancov_lowest_stack is left undefined. Explicitly asking for libclang_rt.ubsan_standalone-x86_64.a when linking the .so fixes the issue.

I found this question that seems similar.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions