]> git.ipfire.org Git - thirdparty/openssl.git/commit
Don't use '-z defs' with Clang's sanitizers
authorRichard Levitte <levitte@openssl.org>
Mon, 15 Apr 2019 08:40:18 +0000 (10:40 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 15 Apr 2019 14:47:25 +0000 (16:47 +0200)
commit72eb100f8a38c5b3822d7751eddaa2f3f4576fa1
tree27a6e9f405b727e8ed8431663da2fd4b111f6fcf
parentf2dbb71cb6bf6cd570f96e7663a22dd87854f08b
Don't use '-z defs' with Clang's sanitizers

The clang documentation in all sanitizers we currently use says this:

    When linking shared libraries, the {flavor}Sanitizer run-time is
    not linked, so -Wl,-z,defs may cause link errors (don’t use it
    with {flavor}Sanitizer)

(in our case, {flavor} is one of Address, Memory, or UndefinedBehavior)

Therefore, we turn off that particular flag specifically when using
the sanitizers.

Fixes #8735

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8749)
Configurations/shared-info.pl