aboutsummaryrefslogtreecommitdiff
path: root/libsanitizer
diff options
context:
space:
mode:
authorAndreas Tobler <andreast@gcc.gnu.org>2020-05-01 09:04:01 +0200
committerAndreas Tobler <andreast@gcc.gnu.org>2020-05-01 17:18:47 +0200
commitd730fd95eebaecad8e26f9e089c7df4630e94f1c (patch)
tree8cf46989a075ad91f0be9d2eb137882a5c3a9d0a /libsanitizer
parentbf1dde9790d304188b10228c24a448fa454ed7b0 (diff)
downloadgcc-d730fd95eebaecad8e26f9e089c7df4630e94f1c.zip
gcc-d730fd95eebaecad8e26f9e089c7df4630e94f1c.tar.gz
gcc-d730fd95eebaecad8e26f9e089c7df4630e94f1c.tar.bz2
gcc: Enable bits for sanitizer support on FreeBSD x86_64
This patch add the necessary bits to suport libasan on FreeBSD x86_64. gcc * config/i386/i386.h: Define a new macro: SUBTARGET_SHADOW_OFFSET. * config/i386/i386.c (ix86_asan_shadow_offset): Use this macro. * config/i386/darwin.h: Override the SUBTARGET_SHADOW_OFFSET macro. * config/i386/freebsd.h: Likewise. * config/freebsd.h (LIBASAN_EARLY_SPEC): Define. LIBTSAN_EARLY_SPEC): Likewise. (LIBLSAN_EARLY_SPEC): Likewise. libsanitizer: * configure.tgt: Add x86_64- and i?86-*-freebsd* targets.
Diffstat (limited to 'libsanitizer')
-rw-r--r--libsanitizer/ChangeLog3
-rw-r--r--libsanitizer/configure.tgt2
2 files changed, 5 insertions, 0 deletions
diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog
index 476cb41..1340185 100644
--- a/libsanitizer/ChangeLog
+++ b/libsanitizer/ChangeLog
@@ -1,3 +1,6 @@
+2020-05-01 Andreas Tobler <andreast@gcc.gnu.org>
+
+ * configure.tgt: Add x86_64- and i?86-*-freebsd* targets.
2020-05-01 Andreas Tobler <andreast@gcc.gnu.org>
diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt
index 5d46990..52503f1 100644
--- a/libsanitizer/configure.tgt
+++ b/libsanitizer/configure.tgt
@@ -22,6 +22,8 @@
TSAN_TARGET_DEPENDENT_OBJECTS=
SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS=
case "${target}" in
+ x86_64-*-freebsd* | i?86-*-freebsd*)
+ ;;
x86_64-*-linux* | i?86-*-linux*)
if test x$ac_cv_sizeof_void_p = x8; then
TSAN_SUPPORTED=yes