]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
gcc defines __SANITIZE_ADDRESS__ and not __ADDRESS_SANITIZER__, use the correct ...
authorOndřej Surý <ondrej@sury.org>
Wed, 19 Dec 2018 11:24:59 +0000 (12:24 +0100)
committerOndřej Surý <ondrej@sury.org>
Wed, 19 Dec 2018 11:46:05 +0000 (12:46 +0100)
(cherry picked from commit 8903d68d69bfb843a75225f23c279f88d4107c4c)

bin/named/unix/dlz_dlopen_driver.c
lib/dns/dyndb.c
lib/isc/include/isc/util.h

index 1254472fac7eb95633967d53721dc8ccedb901fc..f9a46ebb77003620a1355465fbf3765bff0decb4 100644 (file)
@@ -259,7 +259,7 @@ dlopen_dlz_create(const char *dlzname, unsigned int argc, char *argv[],
        /* Open the library */
        dlopen_flags = RTLD_NOW|RTLD_GLOBAL;
 
-#if defined(RTLD_DEEPBIND) && !__ADDRESS_SANITIZER__
+#if defined(RTLD_DEEPBIND) && !__SANITIZE_ADDRESS__
        /*
         * If RTLD_DEEPBIND is available then use it. This can avoid
         * issues with a module using a different version of a system
index e38480a275a470a469ab0739aebefe9203b0481f..15561ce4948928b4cfa58fceea756f28287fbddd 100644 (file)
@@ -133,7 +133,7 @@ load_library(isc_mem_t *mctx, const char *filename, const char *instname,
                      instname, filename);
 
        flags = RTLD_NOW|RTLD_LOCAL;
-#if defined(RTLD_DEEPBIND) && !__ADDRESS_SANITIZER__
+#if defined(RTLD_DEEPBIND) && !__SANITIZE_ADDRESS__
        flags |= RTLD_DEEPBIND;
 #endif
 
index c9a1a1dfdeea820b1a2550ae7992ffc398d48f94..df32569d560dbf34209af447a594f9781da4e16d 100644 (file)
 #define __has_feature(x) 0
 #endif
 
-/* GCC defines __ADDRESS_SANITIZER__, so reuse the macro for clang */
+/* GCC defines __SANITIZE_ADDRESS__, so reuse the macro for clang */
 #if __has_feature(address_sanitizer)
-#define __ADDRESS_SANITIZER__
+#define __SANITIZE_ADDRESS__
 #endif
 
 #ifdef UNIT_TESTING