Module Name: src Committed By: kamil Date: Thu Aug 8 14:00:33 UTC 2019
Added Files: src/external/bsd/compiler_rt: Makefile src/external/bsd/compiler_rt/lib: Makefile src/external/bsd/compiler_rt/lib/clang: Makefile src/external/bsd/compiler_rt/lib/clang/include: Makefile src/external/bsd/compiler_rt/lib/clang/include/sanitizer: Makefile src/external/bsd/compiler_rt/lib/clang/include/xray: Makefile src/external/bsd/compiler_rt/lib/clang/lib: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd: Makefile common.mk gen_dynamic_list.sh m32.mk m64.mk shared_deps.mk sources.mk syms.mk src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m32: Makefile shlib_version src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m64: Makefile shlib_version src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m32: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-preinit-m32: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-preinit-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m32: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dd-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dyndd-m64: Makefile shlib_version src/external/bsd/compiler_rt/lib/clang/lib/netbsd/fuzzer-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/fuzzer_no_main-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m32: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m32: Makefile shlib_version src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m64: Makefile shlib_version src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m32: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m32: Makefile shlib_version src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m64: Makefile shlib_version src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m32: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m32: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-basic-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-fdr-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-m64: Makefile src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-profiling-m64: Makefile src/external/bsd/compiler_rt/lib/clang/share: Makefile Log Message: Add compiler-rt build rules for LLVM sanitizers &co Add build rules for LLVM in all the supported variations for NetBSD/amd64: - asan - xray - tsan, dd - libfuzzer - msan - safestack - ubsan These build rules compile functional sanitizers. The build rules are still not hooked into the distribution build, as there is pending work on backporting improvements for the llvm-8 branch needed for netbsd-9 and newer. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/external/bsd/compiler_rt/Makefile cvs rdiff -u -r0 -r1.1 src/external/bsd/compiler_rt/lib/Makefile cvs rdiff -u -r0 -r1.1 src/external/bsd/compiler_rt/lib/clang/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/include/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/include/sanitizer/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/include/xray/Makefile cvs rdiff -u -r0 -r1.1 src/external/bsd/compiler_rt/lib/clang/lib/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/Makefile \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/common.mk \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/gen_dynamic_list.sh \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/m32.mk \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/m64.mk \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/shared_deps.mk \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/sources.mk \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/syms.mk cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m32/Makefile \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m32/shlib_version cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m64/Makefile \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m64/shlib_version cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m32/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-preinit-m32/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-preinit-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m32/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dd-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dyndd-m64/Makefile \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dyndd-m64/shlib_version cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/fuzzer-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/fuzzer_no_main-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m32/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m32/Makefile \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m32/shlib_version cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m64/Makefile \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m64/shlib_version cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m32/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m32/Makefile \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m32/shlib_version cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m64/Makefile \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m64/shlib_version cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m32/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m32/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-basic-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-fdr-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-m64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-profiling-m64/Makefile cvs rdiff -u -r0 -r1.1 src/external/bsd/compiler_rt/lib/clang/share/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Added files: Index: src/external/bsd/compiler_rt/Makefile diff -u /dev/null src/external/bsd/compiler_rt/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/Makefile Thu Aug 8 14:00:27 2019 @@ -0,0 +1,5 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:27 kamil Exp $ + +SUBDIR+= lib + +.include <bsd.subdir.mk> Index: src/external/bsd/compiler_rt/lib/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/Makefile Thu Aug 8 14:00:28 2019 @@ -0,0 +1,5 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:28 kamil Exp $ + +SUBDIR+= clang + +.include <bsd.subdir.mk> Index: src/external/bsd/compiler_rt/lib/clang/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/Makefile Thu Aug 8 14:00:28 2019 @@ -0,0 +1,11 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:28 kamil Exp $ + +.include <bsd.own.mk> + +SUBDIR+= include share + +.if ${MACHINE_ARCH} == "x86_64" +SUBDIR+= lib +.endif + +.include <bsd.subdir.mk> Index: src/external/bsd/compiler_rt/lib/clang/include/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/include/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/include/Makefile Thu Aug 8 14:00:28 2019 @@ -0,0 +1,5 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:28 kamil Exp $ + +SUBDIR+= sanitizer xray + +.include <bsd.subdir.mk> Index: src/external/bsd/compiler_rt/lib/clang/include/sanitizer/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/include/sanitizer/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/include/sanitizer/Makefile Thu Aug 8 14:00:28 2019 @@ -0,0 +1,27 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:28 kamil Exp $ + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +NOOBJ= # defined + +.PATH: ${TOPDIR}/include/sanitizer + +INCS+= allocator_interface.h +INCS+= asan_interface.h +INCS+= common_interface_defs.h +INCS+= coverage_interface.h +#INCS+= dfsan_interface.h # not supported +#INCS+= esan_interface.h # not supported +#INCS+= hwasan_interface.h # not supported +#INCS+= lsan_interface.h # not supported +INCS+= msan_interface.h +INCS+= netbsd_syscall_hooks.h +#INCS+= scudo_interface.h # not ready +INCS+= tsan_interface.h +INCS+= tsan_interface_atomic.h + +.include <bsd.own.mk> + +INCSDIR= /usr/lib/clang/7.0.0/include/sanitizer + +.include <bsd.prog.mk> Index: src/external/bsd/compiler_rt/lib/clang/include/xray/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/include/xray/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/include/xray/Makefile Thu Aug 8 14:00:28 2019 @@ -0,0 +1,17 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:28 kamil Exp $ + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +NOOBJ= # defined + +.PATH: ${TOPDIR}/include/xray + +INCS+= xray_interface.h +INCS+= xray_log_interface.h +INCS+= xray_records.h + +.include <bsd.own.mk> + +INCSDIR= /usr/lib/clang/7.0.0/include/xray + +.include <bsd.prog.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/Makefile Thu Aug 8 14:00:28 2019 @@ -0,0 +1,5 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:28 kamil Exp $ + +SUBDIR+= netbsd + +.include <bsd.subdir.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/Makefile Thu Aug 8 14:00:28 2019 @@ -0,0 +1,36 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:28 kamil Exp $ + +SUBDIR+= asan-m32 +SUBDIR+= asan-m64 +SUBDIR+= asan-preinit-m32 +SUBDIR+= asan-preinit-m64 +SUBDIR+= asan_cxx-m32 +SUBDIR+= asan_cxx-m64 +SUBDIR+= asan-dynamic-m32 +SUBDIR+= asan-dynamic-m64 +SUBDIR+= dd-m64 +SUBDIR+= dyndd-m64 +SUBDIR+= fuzzer-m64 +SUBDIR+= fuzzer_no_main-m64 +SUBDIR+= msan-m64 +SUBDIR+= msan_cxx-m64 +SUBDIR+= safestack-m32 +SUBDIR+= safestack-m64 +SUBDIR+= tsan-m64 +SUBDIR+= tsan_cxx-m64 +SUBDIR+= ubsan_minimal-m32 +SUBDIR+= ubsan_minimal-m64 +SUBDIR+= ubsan_minimal-dynamic-m32 +SUBDIR+= ubsan_minimal-dynamic-m64 +SUBDIR+= ubsan_standalone-m32 +SUBDIR+= ubsan_standalone-m64 +SUBDIR+= ubsan_standalone-dynamic-m32 +SUBDIR+= ubsan_standalone-dynamic-m64 +SUBDIR+= ubsan_standalone_cxx-m32 +SUBDIR+= ubsan_standalone_cxx-m64 +SUBDIR+= xray-m64 +SUBDIR+= xray-basic-m64 +SUBDIR+= xray-fdr-m64 +SUBDIR+= xray-profiling-m64 + +.include <bsd.subdir.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/common.mk diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/common.mk:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/common.mk Thu Aug 8 14:00:28 2019 @@ -0,0 +1 @@ +CLANG_VER= 7.0.0 Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/gen_dynamic_list.sh diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/gen_dynamic_list.sh:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/gen_dynamic_list.sh Thu Aug 8 14:00:28 2019 @@ -0,0 +1,218 @@ +#!/bin/sh +#===- lib/sanitizer_common/scripts/gen_dynamic_list.sh ---------------------===# +# +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# +# +# Generates the list of functions that should be exported from sanitizer +# runtimes. The output format is recognized by --dynamic-list linker option. +# Usage: +# gen_dynamic_list.sh libclang_rt.*san*.a [ files ... ] +# +#===------------------------------------------------------------------------===# + +usage() { + echo "usage: gen_dynamic_list.py [-h] [--version-list] [--extra EXTRA]" + echo " libraries [libraries ...]" +} + +get_global_functions() { + # On PowerPC, nm prints function descriptors from .data section. + $my_file $1 | grep -q "PowerPC" + if [ $? -eq 0 ]; then + export func_symbols="T|W|D" + else + export func_symbols="T|W" + fi + + $my_nm $1 > $tmpfile1 + if [ $? -ne 0 ]; then + printf 'Error calling: %s %s... bailing out\n' "$my_nm" "$1" + exit 1 + fi + + $my_awk '{if(NF == 3 && $2 ~ ENVIRON["func_symbols"]){print $3}}' \ + $tmpfile1 >> $tmpfile2 +} + +version_list= +extra= + +tmpfile1=`mktemp /tmp/${0##*/}.XXXXXX` || exit 1 +tmpfile2=`mktemp /tmp/${0##*/}.XXXXXX` || exit 1 + +trap "rm -f $tmpfile1 $tmpfile2" EXIT + +my_nm=${NM:-nm} +my_awk=${AWK:-awk} +my_file=${FILE:-file} + +while :; do + case $1 in + -h|--help) + usage + exit + ;; + --extra) + if [ "x$2" = "x" ]; then + usage + printf 'Error missing argument for the option\n' + else + extra=$2 + shift + fi + ;; + --extra=?*) + extra=${1#*=} + ;; + --extra=) + usage + printf 'Error missing argument: %s\n' "$1" + ;; + --version-list) + version_list=1 + ;; + --) + shift + break + ;; + -?*) + usage + printf 'Error parsing argument: %s\n' "$1" + ;; + *) + if [ "x$1" = "x" ]; then + break + else + get_global_functions "$1" + fi + ;; + esac + shift +done + +export version_list + +cat $tmpfile2 > /tmp/A + +$my_awk " +BEGIN { + # operator new[](unsigned long) + new_delete[\"_Znam\"] = 1 + new_delete[\"_ZnamRKSt9nothrow_t\"] = 1 + # operator new(unsigned long) + new_delete[\"_Znwm\"] = 1 + new_delete[\"_ZnwmRKSt9nothrow_t\"] = 1 + # operator new[](unsigned int) + new_delete[\"_Znaj\"] = 1 + new_delete[\"_ZnajRKSt9nothrow_t\"] = 1 + # operator new(unsigned int) + new_delete[\"_Znwj\"] = 1 + new_delete[\"_ZnwjRKSt9nothrow_t\"] = 1 + # operator new(unsigned long, std::align_val_t) + new_delete[\"_ZnwmSt11align_val_t\"] = 1 + new_delete[\"_ZnwmSt11align_val_tRKSt9nothrow_t\"] = 1 + # operator new(unsigned int, std::align_val_t) + new_delete[\"_ZnwjSt11align_val_t\"] = 1 + new_delete[\"_ZnwjSt11align_val_tRKSt9nothrow_t\"] = 1 + # operator new[](unsigned long, std::align_val_t) + new_delete[\"_ZnamSt11align_val_t\"] = 1 + new_delete[\"_ZnamSt11align_val_tRKSt9nothrow_t\"] = 1 + # operator new[](unsigned int, std::align_val_t) + new_delete[\"_ZnajSt11align_val_t\"] = 1 + new_delete[\"_ZnajSt11align_val_tRKSt9nothrow_t\"] = 1 + # operator delete[](void *) + new_delete[\"_ZdaPv\"] = 1 + new_delete[\"_ZdaPvRKSt9nothrow_t\"] = 1 + # operator delete(void *) + new_delete[\"_ZdlPv\"] = 1 + new_delete[\"_ZdlPvRKSt9nothrow_t\"] = 1 + # operator delete[](void*, unsigned long) + new_delete[\"_ZdaPvm\"] = 1 + # operator delete(void*, unsigned long) + new_delete[\"_ZdlPvm\"] = 1 + # operator delete[](void*, unsigned int) + new_delete[\"_ZdaPvj\"] = 1 + # operator delete(void*, unsigned int) + new_delete[\"_ZdlPvj\"] = 1 + # operator delete(void*, std::align_val_t) + new_delete[\"_ZdlPvSt11align_val_t\"] = 1 + new_delete[\"_ZdlPvSt11align_val_tRKSt9nothrow_t\"] = 1 + # operator delete[](void*, std::align_val_t) + new_delete[\"_ZdaPvSt11align_val_t\"] = 1 + new_delete[\"_ZdaPvSt11align_val_tRKSt9nothrow_t\"] = 1 + # operator delete(void*, unsigned long, std::align_val_t) + new_delete[\"_ZdlPvmSt11align_val_t\"] = 1 + # operator delete[](void*, unsigned long, std::align_val_t) + new_delete[\"_ZdaPvmSt11align_val_t\"] = 1 + # operator delete(void*, unsigned int, std::align_val_t) + new_delete[\"_ZdlPvjSt11align_val_t\"] = 1 + # operator delete[](void*, unsigned int, std::align_val_t) + new_delete[\"_ZdaPvjSt11align_val_t\"] = 1 + + versioned_functions[\"memcpy\"] = 1 + versioned_functions[\"pthread_attr_getaffinity_np\"] = 1 + versioned_functions[\"pthread_cond_broadcast\"] = 1 + versioned_functions[\"pthread_cond_destroy\"] = 1 + versioned_functions[\"pthread_cond_init\"] = 1 + versioned_functions[\"pthread_cond_signal\"] = 1 + versioned_functions[\"pthread_cond_timedwait\"] = 1 + versioned_functions[\"pthread_cond_wait\"] = 1 + versioned_functions[\"realpath\"] = 1 + versioned_functions[\"sched_getaffinity\"] = 1 + + len = 0 +} +NR==FNR { + function_set[\$0] = 1 + next +} +{ + if (\$0 in new_delete) { + result[len++] = \$0 + next + } + if (substr(\$0, 1, 14) == \"__interceptor_\") { + result[len++] = \$0 + # We have to avoid exporting the interceptors for versioned library + # functions due to gold internal error. + orig_name = substr(\$0, 15) + if ((orig_name in function_set) && + (ENVIRON["version_list"] == "1" || + !(orig_name in versioned_functions))) { + result[len++] = orig_name + } + next + } + if (substr(\$0, 1, 12) == \"__sanitizer_\") { + result[len++] = \$0 + next + } +} +END { + for (i in result) { + print result[i] + } +} +" $tmpfile2 $tmpfile2 > $tmpfile1 + +if [ "x$extra" != "x" ]; then + cat $extra >> $tmpfile1 +fi + +sort $tmpfile1 -o $tmpfile2 + +echo "{" +if [ "x$version_list" != "x" ]; then + echo "global:" +fi +$my_awk '{print " " $0 ";"}' $tmpfile2 +if [ "x$version_list" != "x" ]; then + echo "local:" + echo " *;" +fi +echo "};" Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/m32.mk diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/m32.mk:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/m32.mk Thu Aug 8 14:00:28 2019 @@ -0,0 +1,7 @@ +CFLAGS+= -m32 +CXXFLAGS+= -m32 +COPTS+= -m32 +CPUFLAGS+= -m32 +LDADD+= -m32 +LDFLAGS+= -m32 +MKDEPFLAGS+= -m32 Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/m64.mk diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/m64.mk:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/m64.mk Thu Aug 8 14:00:28 2019 @@ -0,0 +1,5 @@ +COPTS+= -m64 +CPUFLAGS+= -m64 +LDADD+= -m64 +LDFLAGS+= -m64 +MKDEPFLAGS+= -m64 Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/shared_deps.mk diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/shared_deps.mk:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/shared_deps.mk Thu Aug 8 14:00:28 2019 @@ -0,0 +1,6 @@ +LDADD+= -lpthread +LDADD+= -lrt +LDADD+= -lm +DPADD+= ${LIBPTHREAD} +DPADD+= ${LIBRT} +DPADD+= ${LIBM} Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/sources.mk diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/sources.mk:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/sources.mk Thu Aug 8 14:00:28 2019 @@ -0,0 +1,303 @@ +# $NetBSD: sources.mk,v 1.1 2019/08/08 14:00:28 kamil Exp $ + +# RTInterception +INTERCEPTION_SOURCES+= interception_linux.cc +INTERCEPTION_SOURCES+= interception_mac.cc +INTERCEPTION_SOURCES+= interception_win.cc +INTERCEPTION_SOURCES+= interception_type_test.cc + +# RTSanitizerCommonNoTermination +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_allocator.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_common.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_deadlock_detector1.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_deadlock_detector2.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_errno.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_file.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_flags.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_flag_parser.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_fuchsia.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_libc.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_libignore.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_linux.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_linux_s390.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_mac.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_netbsd.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_openbsd.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_persistent_allocator.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_platform_limits_freebsd.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_platform_limits_linux.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_platform_limits_netbsd.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_platform_limits_openbsd.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_platform_limits_posix.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_platform_limits_solaris.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_posix.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_printf.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_procmaps_common.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_procmaps_bsd.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_procmaps_linux.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_procmaps_mac.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_procmaps_solaris.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_rtems.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_solaris.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_stoptheworld_mac.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_suppressions.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_tls_get_addr.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_thread_registry.cc +SANITIZER_SOURCES_NOTERMINATION+= sanitizer_win.cc + +# RTSanitizerCommon +SANITIZER_SOURCES+= ${SANITIZER_SOURCES_NOTERMINATION} +SANITIZER_SOURCES+= sanitizer_termination.cc + +# RTSanitizerCommonNoLibc +SANITIZER_NOLIBC_SOURCES+= sanitizer_common_nolibc.cc + +.for w in ${SANITIZER_NOLIBC_SOURCES} +COPTS.${w}+= -fno-rtti +.endfor + +# RTSanitizerCommonLibc +SANITIZER_LIBCDEP_SOURCES+= sanitizer_common_libcdep.cc +SANITIZER_LIBCDEP_SOURCES+= sanitizer_allocator_checks.cc +SANITIZER_LIBCDEP_SOURCES+= sanitizer_linux_libcdep.cc +SANITIZER_LIBCDEP_SOURCES+= sanitizer_mac_libcdep.cc +SANITIZER_LIBCDEP_SOURCES+= sanitizer_posix_libcdep.cc +SANITIZER_LIBCDEP_SOURCES+= sanitizer_stoptheworld_linux_libcdep.cc + +# RTSanitizerCommonCoverage +SANITIZER_COVERAGE_SOURCES+= sancov_flags.cc +SANITIZER_COVERAGE_SOURCES+= sanitizer_coverage_fuchsia.cc +SANITIZER_COVERAGE_SOURCES+= sanitizer_coverage_libcdep_new.cc +SANITIZER_COVERAGE_SOURCES+= sanitizer_coverage_win_sections.cc + +# RTSanitizerCommonSymbolizer +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_allocator_report.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_stackdepot.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_stacktrace.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_stacktrace_libcdep.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_stacktrace_printer.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_stacktrace_sparc.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_symbolizer.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_symbolizer_libbacktrace.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_symbolizer_libcdep.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_symbolizer_mac.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_symbolizer_markup.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_symbolizer_posix_libcdep.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_symbolizer_report.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_symbolizer_win.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_unwind_linux_libcdep.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_symbolizer_report.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_symbolizer_win.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_unwind_linux_libcdep.cc +SANITIZER_SYMBOLIZER_SOURCES+= sanitizer_unwind_win.cc + +DD_SOURCES+= dd_rtl.cc +DD_SOURCES+= dd_interceptors.cc + +ASAN_SOURCES+= asan_allocator.cc +ASAN_SOURCES+= asan_activation.cc +ASAN_SOURCES+= asan_debugging.cc +ASAN_SOURCES+= asan_descriptions.cc +ASAN_SOURCES+= asan_errors.cc +ASAN_SOURCES+= asan_fake_stack.cc +ASAN_SOURCES+= asan_flags.cc +ASAN_SOURCES+= asan_fuchsia.cc +ASAN_SOURCES+= asan_globals.cc +ASAN_SOURCES+= asan_globals_win.cc +ASAN_SOURCES+= asan_interceptors.cc +ASAN_SOURCES+= asan_interceptors_memintrinsics.cc +ASAN_SOURCES+= asan_linux.cc +ASAN_SOURCES+= asan_mac.cc +ASAN_SOURCES+= asan_malloc_linux.cc +ASAN_SOURCES+= asan_malloc_mac.cc +ASAN_SOURCES+= asan_malloc_win.cc +ASAN_SOURCES+= asan_memory_profile.cc +ASAN_SOURCES+= asan_poisoning.cc +ASAN_SOURCES+= asan_posix.cc +ASAN_SOURCES+= asan_premap_shadow.cc +ASAN_SOURCES+= asan_report.cc +ASAN_SOURCES+= asan_rtems.cc +ASAN_SOURCES+= asan_rtl.cc +ASAN_SOURCES+= asan_shadow_setup.cc +ASAN_SOURCES+= asan_stack.cc +ASAN_SOURCES+= asan_stats.cc +ASAN_SOURCES+= asan_suppressions.cc +ASAN_SOURCES+= asan_thread.cc +ASAN_SOURCES+= asan_win.cc + +ASAN_CXX_SOURCES+= asan_new_delete.cc + +ASAN_PREINIT_SOURCES+= asan_preinit.cc + +LIBFUZZER_SOURCES+= FuzzerCrossOver.cpp +LIBFUZZER_SOURCES+= FuzzerDataFlowTrace.cpp +LIBFUZZER_SOURCES+= FuzzerDriver.cpp +LIBFUZZER_SOURCES+= FuzzerExtFunctionsDlsym.cpp +LIBFUZZER_SOURCES+= FuzzerExtFunctionsWeakAlias.cpp +LIBFUZZER_SOURCES+= FuzzerExtFunctionsWeak.cpp +LIBFUZZER_SOURCES+= FuzzerExtraCounters.cpp +LIBFUZZER_SOURCES+= FuzzerIO.cpp +LIBFUZZER_SOURCES+= FuzzerIOPosix.cpp +LIBFUZZER_SOURCES+= FuzzerIOWindows.cpp +LIBFUZZER_SOURCES+= FuzzerLoop.cpp +LIBFUZZER_SOURCES+= FuzzerMerge.cpp +LIBFUZZER_SOURCES+= FuzzerMutate.cpp +LIBFUZZER_SOURCES+= FuzzerSHA1.cpp +LIBFUZZER_SOURCES+= FuzzerShmemFuchsia.cpp +LIBFUZZER_SOURCES+= FuzzerShmemPosix.cpp +LIBFUZZER_SOURCES+= FuzzerShmemWindows.cpp +LIBFUZZER_SOURCES+= FuzzerTracePC.cpp +LIBFUZZER_SOURCES+= FuzzerUtil.cpp +LIBFUZZER_SOURCES+= FuzzerUtilDarwin.cpp +LIBFUZZER_SOURCES+= FuzzerUtilFuchsia.cpp +LIBFUZZER_SOURCES+= FuzzerUtilLinux.cpp +LIBFUZZER_SOURCES+= FuzzerUtilPosix.cpp +LIBFUZZER_SOURCES+= FuzzerUtilWindows.cpp + +LIBFUZZER_MAIN_SOURCES+= FuzzerMain.cpp + +MSAN_RTL_SOURCES+= msan.cc +MSAN_RTL_SOURCES+= msan_allocator.cc +MSAN_RTL_SOURCES+= msan_chained_origin_depot.cc +MSAN_RTL_SOURCES+= msan_interceptors.cc +MSAN_RTL_SOURCES+= msan_linux.cc +MSAN_RTL_SOURCES+= msan_report.cc +MSAN_RTL_SOURCES+= msan_thread.cc +MSAN_RTL_SOURCES+= msan_poisoning.cc + +MSAN_RTL_CXX_SOURCES+= msan_new_delete.cc + +SAFESTACK_SOURCES+= safestack.cc + +STATS_SOURCES+= stats.cc + +STATS_CLIENT_SOURCES+= stats_client.cc + +TSAN_SOURCES+= tsan_clock.cc +TSAN_SOURCES+= tsan_debugging.cc +TSAN_SOURCES+= tsan_external.cc +TSAN_SOURCES+= tsan_fd.cc +TSAN_SOURCES+= tsan_flags.cc +TSAN_SOURCES+= tsan_ignoreset.cc +TSAN_SOURCES+= tsan_interceptors.cc +TSAN_SOURCES+= tsan_interface.cc +TSAN_SOURCES+= tsan_interface_ann.cc +TSAN_SOURCES+= tsan_interface_atomic.cc +TSAN_SOURCES+= tsan_interface_java.cc +TSAN_SOURCES+= tsan_malloc_mac.cc +TSAN_SOURCES+= tsan_md5.cc +TSAN_SOURCES+= tsan_mman.cc +TSAN_SOURCES+= tsan_mutex.cc +TSAN_SOURCES+= tsan_mutexset.cc +TSAN_SOURCES+= tsan_preinit.cc +TSAN_SOURCES+= tsan_report.cc +TSAN_SOURCES+= tsan_rtl.cc +TSAN_SOURCES+= tsan_rtl_mutex.cc +TSAN_SOURCES+= tsan_rtl_proc.cc +TSAN_SOURCES+= tsan_rtl_report.cc +TSAN_SOURCES+= tsan_rtl_thread.cc +TSAN_SOURCES+= tsan_stack_trace.cc +TSAN_SOURCES+= tsan_stat.cc +TSAN_SOURCES+= tsan_suppressions.cc +TSAN_SOURCES+= tsan_symbolize.cc +TSAN_SOURCES+= tsan_sync.cc +TSAN_SOURCES+= tsan_platform_linux.cc +TSAN_SOURCES+= tsan_platform_posix.cc + +TSAN_CXX_SOURCES+= tsan_new_delete.cc + +.include <bsd.own.mk> + +.if ${MACHINE_ARCH} == "x86_64" +TSAN_ASM_SOURCES+= tsan_rtl_amd64.S +.endif + +UBSAN_MINIMAL_SOURCES+= ubsan_minimal_handlers.cc + +UBSAN_SOURCES+= ubsan_diag.cc +UBSAN_SOURCES+= ubsan_init.cc +UBSAN_SOURCES+= ubsan_flags.cc +UBSAN_SOURCES+= ubsan_handlers.cc +UBSAN_SOURCES+= ubsan_monitor.cc +UBSAN_SOURCES+= ubsan_value.cc + +UBSAN_STANDALONE_SOURCES+= ubsan_diag_standalone.cc +UBSAN_STANDALONE_SOURCES+= ubsan_init_standalone.cc +UBSAN_STANDALONE_SOURCES+= ubsan_signals_standalone.cc + +UBSAN_STANDALONE_SOURCES_STATIC+= ubsan_init_standalone_preinit.cc + +UBSAN_CXXABI_SOURCES+= ubsan_handlers_cxx.cc +UBSAN_CXXABI_SOURCES+= ubsan_type_hash.cc +UBSAN_CXXABI_SOURCES+= ubsan_type_hash_itanium.cc +UBSAN_CXXABI_SOURCES+= ubsan_type_hash_win.cc + +.if 0 # ${MKCXXABI:U} == "yes" +UBSAN_CXX_SOURCES+= ${UBSAN_CXXABI_SOURCES} +.else +UBSAN_CXX_SOURCES+= cxx_dummy.cc + +cxx_dummy.cc: + touch ${.TARGET} +.endif + +XRAY_SOURCES+= xray_buffer_queue.cc +XRAY_SOURCES+= xray_init.cc +XRAY_SOURCES+= xray_flags.cc +XRAY_SOURCES+= xray_interface.cc +XRAY_SOURCES+= xray_log_interface.cc +XRAY_SOURCES+= xray_utils.cc + +XRAY_FDR_MODE_SOURCES+= xray_fdr_flags.cc +XRAY_FDR_MODE_SOURCES+= xray_fdr_logging.cc + +XRAY_BASIC_MODE_SOURCES+= xray_basic_flags.cc +XRAY_BASIC_MODE_SOURCES+= xray_basic_logging.cc + +XRAY_PROFILING_MODE_SOURCES+= xray_profile_collector.cc +XRAY_PROFILING_MODE_SOURCES+= xray_profiling.cc +XRAY_PROFILING_MODE_SOURCES+= xray_profiling_flags.cc + +XRAY_X86_64_SOURCES+= xray_x86_64.cc +XRAY_X86_64_SOURCES+= xray_trampoline_x86_64.S + +XRAY_ARM_SOURCES+= xray_arm.cc +XRAY_ARM_SOURCES+= xray_trampoline_arm.S + +XRAY_ARMHF_SOURCES+= ${XRAY_ARM_SOURCES} + +XRAY_AARCH64_SOURCES+= xray_AArch64.cc +XRAY_AARCH64_SOURCES+= xray_trampoline_AArch64.S + +XRAY_MIPS_SOURCES+= xray_mips.cc +XRAY_MIPS_SOURCES+= xray_trampoline_mips.S + +XRAY_MIPSEL_SOURCES+= xray_mips.cc +XRAY_MIPSEL_SOURCES+= xray_trampoline_mips.S + +XRAY_MIPS64_SOURCES+= xray_mips64.cc +XRAY_MIPS64_SOURCES+= xray_trampoline_mips64.S + +XRAY_MIPS64EL_SOURCES+= xray_mips64.cc +XRAY_MIPS64EL_SOURCES+= xray_trampoline_mips64.S + +XRAY_POWERPC64LE_SOURCES+= xray_powerpc64.cc +XRAY_POWERPC64LE_SOURCES+= xray_trampoline_powerpc64.cc +XRAY_POWERPC64LE_SOURCES+= xray_trampoline_powerpc64_asm.S + +.if ${MACHINE_ARCH} == "x86_64" +XRAY_ARCH_SOURCES+= ${XRAY_X86_64_SOURCES} +.endif + +LSAN_COMMON_SOURCES+= lsan_common.cc +LSAN_COMMON_SOURCES+= lsan_common_linux.cc +LSAN_COMMON_SOURCES+= lsan_common_mac.cc + +LSAN_SOURCES+= lsan.cc +LSAN_SOURCES+= lsan_allocator.cc +LSAN_SOURCES+= lsan_linux.cc +LSAN_SOURCES+= lsan_interceptors.cc +LSAN_SOURCES+= lsan_mac.cc +LSAN_SOURCES+= lsan_malloc_mac.cc +LSAN_SOURCES+= lsan_preinit.cc +LSAN_SOURCES+= lsan_thread.cc Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/syms.mk diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/syms.mk:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/syms.mk Thu Aug 8 14:00:28 2019 @@ -0,0 +1,9 @@ +.SUFFIXES: .a .syms +.a.syms: + ${SCRIPT_ENV} \ + NM=${NM} \ + AWK=${AWK} \ + FILE=${FILE} \ + ${HOST_SH} \ + ${.PARSEDIR}/gen_dynamic_list.sh \ + ${.IMPSRC} > ${.TARGET} Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m32/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m32/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m32/Makefile Thu Aug 8 14:00:28 2019 @@ -0,0 +1,52 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:28 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.asan-i386 + +.PATH: ${TOPDIR}/lib/interception + +SRCS+= ${INTERCEPTION_SOURCES} + +.PATH: ${TOPDIR}/lib/asan + +SRCS+= ${ASAN_SOURCES} +SRCS+= ${ASAN_CXX_SOURCES} + +.PATH: ${TOPDIR}/lib/lsan + +SRCS+= ${LSAN_COMMON_SOURCES} + +.PATH: ${TOPDIR}/lib/ubsan + +SRCS+= ${UBSAN_SOURCES} + +.PATH: ${TOPDIR}/lib/sanitizer_common + +SRCS+= ${SANITIZER_LIBCDEP_SOURCES} +SRCS+= ${SANITIZER_COVERAGE_SOURCES} +SRCS+= ${SANITIZER_SOURCES} +SRCS+= ${SANITIZER_SYMBOLIZER_SOURCES} + +CPPFLAGS+= -DASAN_DYNAMIC=1 + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector -ftls-model=initial-exec + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +LIBISMODULE= yes + +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m32.mk" +.include "../shared_deps.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m32/shlib_version diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m32/shlib_version:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m32/shlib_version Thu Aug 8 14:00:28 2019 @@ -0,0 +1,2 @@ +major=0 +minor=0 Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m64/Makefile Thu Aug 8 14:00:29 2019 @@ -0,0 +1,52 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:29 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.asan-x86_64 + +.PATH: ${TOPDIR}/lib/interception + +SRCS+= ${INTERCEPTION_SOURCES} + +.PATH: ${TOPDIR}/lib/asan + +SRCS+= ${ASAN_SOURCES} +SRCS+= ${ASAN_CXX_SOURCES} + +.PATH: ${TOPDIR}/lib/lsan + +SRCS+= ${LSAN_COMMON_SOURCES} + +.PATH: ${TOPDIR}/lib/ubsan + +SRCS+= ${UBSAN_SOURCES} + +.PATH: ${TOPDIR}/lib/sanitizer_common + +SRCS+= ${SANITIZER_LIBCDEP_SOURCES} +SRCS+= ${SANITIZER_COVERAGE_SOURCES} +SRCS+= ${SANITIZER_SOURCES} +SRCS+= ${SANITIZER_SYMBOLIZER_SOURCES} + +CPPFLAGS+= -DASAN_DYNAMIC=1 + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector -ftls-model=initial-exec + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +LIBISMODULE= yes + +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m64.mk" +.include "../shared_deps.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m64/shlib_version diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m64/shlib_version:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m64/shlib_version Thu Aug 8 14:00:29 2019 @@ -0,0 +1,2 @@ +major=0 +minor=0 Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m32/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m32/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m32/Makefile Thu Aug 8 14:00:29 2019 @@ -0,0 +1,55 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:29 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.asan-i386 + +.PATH: ${TOPDIR}/lib/interception + +SRCS+= ${INTERCEPTION_SOURCES} + +.PATH: ${TOPDIR}/lib/asan + +SRCS+= ${ASAN_PREINIT_SOURCES} +SRCS+= ${ASAN_SOURCES} + +.PATH: ${TOPDIR}/lib/lsan + +SRCS+= ${LSAN_COMMON_SOURCES} + +.PATH: ${TOPDIR}/lib/ubsan + +SRCS+= ${UBSAN_SOURCES} + +.PATH: ${TOPDIR}/lib/sanitizer_common + +SRCS+= ${SANITIZER_LIBCDEP_SOURCES} +SRCS+= ${SANITIZER_COVERAGE_SOURCES} +SRCS+= ${SANITIZER_SOURCES} +SRCS+= ${SANITIZER_SYMBOLIZER_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +COPTS+= -fPIC +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m32.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile Thu Aug 8 14:00:29 2019 @@ -0,0 +1,61 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:29 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.asan-x86_64 + +.PATH: ${TOPDIR}/lib/interception + +SRCS+= ${INTERCEPTION_SOURCES} + +.PATH: ${TOPDIR}/lib/asan + +SRCS+= ${ASAN_PREINIT_SOURCES} +SRCS+= ${ASAN_SOURCES} + +.PATH: ${TOPDIR}/lib/lsan + +SRCS+= ${LSAN_COMMON_SOURCES} + +.PATH: ${TOPDIR}/lib/ubsan + +SRCS+= ${UBSAN_SOURCES} + +.PATH: ${TOPDIR}/lib/sanitizer_common + +SRCS+= ${SANITIZER_LIBCDEP_SOURCES} +SRCS+= ${SANITIZER_COVERAGE_SOURCES} +SRCS+= ${SANITIZER_SOURCES} +SRCS+= ${SANITIZER_SYMBOLIZER_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +CPPFLAGS+= -I${TOPDIR}/lib + +COPTS+= -fPIC + +.include "../m64.mk" + +.include "../syms.mk" + +FILES= libclang_rt.asan-x86_64.a.syms +FILESDIR= ${LIBDIR} + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-preinit-m32/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-preinit-m32/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-preinit-m32/Makefile Thu Aug 8 14:00:29 2019 @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:29 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.asan-preinit-i386 + +.PATH: ${TOPDIR}/lib/asan + +SRCS+= ${ASAN_PREINIT_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +CPPFLAGS+= -I${TOPDIR}/lib +COPTS+= -fPIC + +.include "../m32.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-preinit-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-preinit-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-preinit-m64/Makefile Thu Aug 8 14:00:29 2019 @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:29 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.asan-preinit-x86_64 + +.PATH: ${TOPDIR}/lib/asan + +SRCS+= ${ASAN_PREINIT_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +CPPFLAGS+= -I${TOPDIR}/lib +COPTS+= -fPIC + +.include "../m64.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m32/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m32/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m32/Makefile Thu Aug 8 14:00:29 2019 @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:29 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.asan_cxx-i386 + +.PATH: ${TOPDIR}/lib/asan + +SRCS+= ${ASAN_CXX_SOURCES} + +.PATH: ${TOPDIR}/lib/ubsan + +SRCS+= ${UBSAN_CXX_SOURCES} + +CXXFLAGS+= -fno-exceptions -fno-builtin -fno-stack-protector # RTTI needed + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +CPPFLAGS+= -I${TOPDIR}/lib + +COPTS+= -fPIC + +.include "../m32.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile Thu Aug 8 14:00:29 2019 @@ -0,0 +1,44 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:29 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.asan_cxx-x86_64 + +.PATH: ${TOPDIR}/lib/asan + +SRCS+= ${ASAN_CXX_SOURCES} + +.PATH: ${TOPDIR}/lib/ubsan + +SRCS+= ${UBSAN_CXX_SOURCES} + +CXXFLAGS+= -fno-exceptions -fno-builtin -fno-stack-protector # RTTI + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +CPPFLAGS+= -I${TOPDIR}/lib +COPTS+= -fPIC + +.include "../m64.mk" + +.include "../syms.mk" + +FILES= libclang_rt.asan_cxx-x86_64.a.syms +FILESDIR= ${LIBDIR} + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dd-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dd-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dd-m64/Makefile Thu Aug 8 14:00:29 2019 @@ -0,0 +1,45 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:29 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.dd-x86_64 + +.PATH: ${TOPDIR}/lib/tsan/dd + +SRCS+= ${DD_SOURCES} + +.PATH: ${TOPDIR}/lib/interception + +SRCS+= ${INTERCEPTION_SOURCES} + +.PATH: ${TOPDIR}/lib/sanitizer_common + +SRCS+= ${SANITIZER_LIBCDEP_SOURCES} +SRCS+= ${SANITIZER_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +CPPFLAGS+= -I${TOPDIR}/lib + +COPTS+= -fPIC + +.include "../m64.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dyndd-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dyndd-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dyndd-m64/Makefile Thu Aug 8 14:00:30 2019 @@ -0,0 +1,42 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:30 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.dyndd-x86_64 + +.PATH: ${TOPDIR}/lib/tsan/dd + +SRCS+= ${DD_SOURCES} + +.PATH: ${TOPDIR}/lib/interception + +SRCS+= ${INTERCEPTION_SOURCES} + +.PATH: ${TOPDIR}/lib/sanitizer_common + +SRCS+= ${SANITIZER_LIBCDEP_SOURCES} +SRCS+= ${SANITIZER_SOURCES} +SRCS+= ${SANITIZER_SYMBOLIZER_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +LIBISMODULE= yes + +CPPFLAGS+= -I${TOPDIR}/lib + +COPTS+= -fPIC + +.include "../m64.mk" +.include "../shared_deps.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dyndd-m64/shlib_version diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dyndd-m64/shlib_version:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dyndd-m64/shlib_version Thu Aug 8 14:00:30 2019 @@ -0,0 +1,2 @@ +major=0 +minor=0 Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/fuzzer-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/fuzzer-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/fuzzer-m64/Makefile Thu Aug 8 14:00:30 2019 @@ -0,0 +1,37 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:30 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.fuzzer-x86_64 + +.PATH: ${TOPDIR}/lib/fuzzer + +SRCS+= ${LIBFUZZER_SOURCES} +SRCS+= ${LIBFUZZER_MAIN_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +CPPFLAGS+= -I${TOPDIR}/lib + +COPTS+= -fPIC + +.include "../m64.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/fuzzer_no_main-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/fuzzer_no_main-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/fuzzer_no_main-m64/Makefile Thu Aug 8 14:00:30 2019 @@ -0,0 +1,36 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:30 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.fuzzer_no_main-x86_64 + +.PATH: ${TOPDIR}/lib/fuzzer + +SRCS+= ${LIBFUZZER_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +CPPFLAGS+= -I${TOPDIR}/lib + +COPTS+= -fPIC + +.include "../m64.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile Thu Aug 8 14:00:30 2019 @@ -0,0 +1,56 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:30 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.msan-x86_64 + +.PATH: ${TOPDIR}/lib/ubsan + +SRCS+= ${UBSAN_SOURCES} + +.PATH: ${TOPDIR}/lib/msan + +SRCS+= ${MSAN_RTL_SOURCES} + +.PATH: ${TOPDIR}/lib/interception + +SRCS+= ${INTERCEPTION_SOURCES} + +.PATH: ${TOPDIR}/lib/sanitizer_common + +SRCS+= ${SANITIZER_COVERAGE_SOURCES} +SRCS+= ${SANITIZER_LIBCDEP_SOURCES} +SRCS+= ${SANITIZER_SOURCES} +SRCS+= ${SANITIZER_SYMBOLIZER_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +CPPFLAGS+= -I${TOPDIR}/lib + +COPTS+= -fPIC + +.include "../m64.mk" + +.include "../syms.mk" + +FILES= libclang_rt.msan-x86_64.a.syms +FILESDIR= ${LIBDIR} + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile Thu Aug 8 14:00:30 2019 @@ -0,0 +1,45 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:30 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.msan_cxx-x86_64 + +.PATH: ${TOPDIR}/lib/ubsan + +SRCS+= ${UBSAN_CXX_SOURCES} + +.PATH: ${TOPDIR}/lib/msan + +SRCS+= ${MSAN_RTL_CXX_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +CPPFLAGS+= -I${TOPDIR}/lib + +COPTS+= -fPIC + +.include "../m64.mk" + +.include "../syms.mk" + +FILES= libclang_rt.msan_cxx-x86_64.a.syms +FILESDIR= ${LIBDIR} + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m32/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m32/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m32/Makefile Thu Aug 8 14:00:30 2019 @@ -0,0 +1,44 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:30 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.safestack-i386 + +.PATH: ${TOPDIR}/lib/safestack + +SRCS+= ${SAFESTACK_SOURCES} + +.PATH: ${TOPDIR}/lib/interception + +SRCS+= ${INTERCEPTION_SOURCES} + +.PATH: ${TOPDIR}/lib/sanitizer_common + +SRCS+= ${SANITIZER_SOURCES} +SRCS+= ${SANITIZER_NOLIBC_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +COPTS+= -fPIC +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m32.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m64/Makefile Thu Aug 8 14:00:30 2019 @@ -0,0 +1,44 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:30 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.safestack-x86_64 + +.PATH: ${TOPDIR}/lib/safestack + +SRCS+= ${SAFESTACK_SOURCES} + +.PATH: ${TOPDIR}/lib/interception + +SRCS+= ${INTERCEPTION_SOURCES} + +.PATH: ${TOPDIR}/lib/sanitizer_common + +SRCS+= ${SANITIZER_SOURCES} +SRCS+= ${SANITIZER_NOLIBC_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +COPTS+= -fPIC +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m64.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile Thu Aug 8 14:00:30 2019 @@ -0,0 +1,56 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:30 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.tsan-x86_64 + +.PATH: ${TOPDIR}/lib/ubsan + +SRCS+= ${UBSAN_SOURCES} + +.PATH: ${TOPDIR}/lib/tsan/rtl + +SRCS+= ${TSAN_SOURCES} +SRCS+= ${TSAN_ASM_SOURCES} + +.PATH: ${TOPDIR}/lib/interception + +SRCS+= ${INTERCEPTION_SOURCES} + +.PATH: ${TOPDIR}/lib/sanitizer_common + +SRCS+= ${SANITIZER_SOURCES} +SRCS+= ${SANITIZER_LIBCDEP_SOURCES} +SRCS+= ${SANITIZER_COVERAGE_SOURCES} +SRCS+= ${SANITIZER_SYMBOLIZER_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +COPTS+= -fPIC +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m64.mk" + +.include "../syms.mk" + +FILES= libclang_rt.tsan-x86_64.a.syms +FILESDIR= ${LIBDIR} + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile Thu Aug 8 14:00:31 2019 @@ -0,0 +1,44 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:31 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.tsan_cxx-x86_64 + +.PATH: ${TOPDIR}/lib/tsan/rtl + +SRCS+= ${TSAN_CXX_SOURCES} + +.PATH: ${TOPDIR}/lib/ubsan + +SRCS+= ${UBSAN_CXX_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +COPTS+= -fPIC +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m64.mk" + +.include "../syms.mk" + +FILES= libclang_rt.tsan_cxx-x86_64.a.syms +FILESDIR= ${LIBDIR} + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m32/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m32/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m32/Makefile Thu Aug 8 14:00:31 2019 @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:31 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.ubsan_minimal-i386 + +.PATH: ${TOPDIR}/lib/ubsan_minimal + +SRCS+= ${UBSAN_MINIMAL_SOURCES} + +CXXFLAGS+= -fno-builtin -fno-exceptions -fno-stack-protector -fno-rtti + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +LIBISMODULE= yes + +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m32.mk" +.include "../shared_deps.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m32/shlib_version diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m32/shlib_version:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m32/shlib_version Thu Aug 8 14:00:31 2019 @@ -0,0 +1,2 @@ +major=0 +minor=0 Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m64/Makefile Thu Aug 8 14:00:31 2019 @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:31 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.ubsan_minimal-x86_64 + +.PATH: ${TOPDIR}/lib/ubsan_minimal + +SRCS+= ${UBSAN_MINIMAL_SOURCES} + +CXXFLAGS+= -fno-builtin -fno-exceptions -fno-stack-protector -fno-rtti + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +LIBISMODULE= yes + +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m64.mk" +.include "../shared_deps.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m64/shlib_version diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m64/shlib_version:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m64/shlib_version Thu Aug 8 14:00:31 2019 @@ -0,0 +1,2 @@ +major=0 +minor=0 Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m32/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m32/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m32/Makefile Thu Aug 8 14:00:31 2019 @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:31 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.ubsan_minimal-i386 + +.PATH: ${TOPDIR}/lib/ubsan_minimal + +SRCS+= ${UBSAN_MINIMAL_SOURCES} + +CXXFLAGS+= -fno-builtin -fno-exceptions -fno-stack-protector -fno-rtti + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +COPTS+= -fPIC +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m32.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile Thu Aug 8 14:00:31 2019 @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:31 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.ubsan_minimal-x86_64 + +.PATH: ${TOPDIR}/lib/ubsan_minimal + +SRCS+= ${UBSAN_MINIMAL_SOURCES} + +CXXFLAGS+= -fno-builtin -fno-exceptions -fno-stack-protector -fno-rtti + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +COPTS+= -fPIC +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m64.mk" + +.include "../syms.mk" + +FILES= libclang_rt.ubsan_minimal-x86_64.a.syms +FILESDIR= ${LIBDIR} + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m32/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m32/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m32/Makefile Thu Aug 8 14:00:31 2019 @@ -0,0 +1,42 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:31 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.ubsan_standalone-i386 + +.PATH: ${TOPDIR}/lib/interception + +SRCS+= ${INTERCEPTION_SOURCES} + +.PATH: ${TOPDIR}/lib/sanitizer_common + +SRCS+= ${SANITIZER_SOURCES} +SRCS+= ${SANITIZER_LIBCDEP_SOURCES} +SRCS+= ${SANITIZER_COVERAGE_SOURCES} +SRCS+= ${SANITIZER_SYMBOLIZER_SOURCES} + +.PATH: ${TOPDIR}/lib/ubsan + +SRCS+= ${UBSAN_SOURCES} +SRCS+= ${UBSAN_STANDALONE_SOURCES} + +CXXFLAGS+= -fno-builtin -fno-exceptions -fno-stack-protector -fno-rtti + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +LIBISMODULE= yes + +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m32.mk" +.include "../shared_deps.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m32/shlib_version diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m32/shlib_version:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m32/shlib_version Thu Aug 8 14:00:31 2019 @@ -0,0 +1,2 @@ +major=0 +minor=0 Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m64/Makefile Thu Aug 8 14:00:31 2019 @@ -0,0 +1,42 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:31 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.ubsan_standalone-x86_64 + +.PATH: ${TOPDIR}/lib/interception + +SRCS+= ${INTERCEPTION_SOURCES} + +.PATH: ${TOPDIR}/lib/sanitizer_common + +SRCS+= ${SANITIZER_SOURCES} +SRCS+= ${SANITIZER_LIBCDEP_SOURCES} +SRCS+= ${SANITIZER_COVERAGE_SOURCES} +SRCS+= ${SANITIZER_SYMBOLIZER_SOURCES} + +.PATH: ${TOPDIR}/lib/ubsan + +SRCS+= ${UBSAN_SOURCES} +SRCS+= ${UBSAN_STANDALONE_SOURCES} + +CXXFLAGS+= -fno-builtin -fno-exceptions -fno-stack-protector -fno-rtti + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +LIBISMODULE= yes + +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m64.mk" +.include "../shared_deps.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m64/shlib_version diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m64/shlib_version:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m64/shlib_version Thu Aug 8 14:00:31 2019 @@ -0,0 +1,2 @@ +major=0 +minor=0 Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m32/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m32/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m32/Makefile Thu Aug 8 14:00:31 2019 @@ -0,0 +1,47 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:31 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.ubsan_standalone-i386 + +.PATH: ${TOPDIR}/lib/interception + +SRCS+= ${INTERCEPTION_SOURCES} + +.PATH: ${TOPDIR}/lib/sanitizer_common + +SRCS+= ${SANITIZER_SOURCES} +SRCS+= ${SANITIZER_LIBCDEP_SOURCES} +SRCS+= ${SANITIZER_COVERAGE_SOURCES} +SRCS+= ${SANITIZER_SYMBOLIZER_SOURCES} + +.PATH: ${TOPDIR}/lib/ubsan + +SRCS+= ${UBSAN_SOURCES} +SRCS+= ${UBSAN_STANDALONE_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +COPTS+= -fPIC +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m32.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile Thu Aug 8 14:00:32 2019 @@ -0,0 +1,54 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:32 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.ubsan_standalone-x86_64 + +.PATH: ${TOPDIR}/lib/interception + +SRCS+= ${INTERCEPTION_SOURCES} + +.PATH: ${TOPDIR}/lib/sanitizer_common + +SRCS+= ${SANITIZER_SOURCES} +SRCS+= ${SANITIZER_LIBCDEP_SOURCES} +SRCS+= ${SANITIZER_COVERAGE_SOURCES} +SRCS+= ${SANITIZER_SYMBOLIZER_SOURCES} + +.PATH: ${TOPDIR}/lib/ubsan + +SRCS+= ${UBSAN_SOURCES} +SRCS+= ${UBSAN_STANDALONE_SOURCES} + +SRCS+= ${UBSAN_STANDALONE_SOURCES_STATIC} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +COPTS+= -fPIC +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m64.mk" + +.include "../syms.mk" + +FILES= libclang_rt.ubsan_standalone-x86_64.a.syms +FILESDIR= ${LIBDIR} + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m32/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m32/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m32/Makefile Thu Aug 8 14:00:32 2019 @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:32 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.ubsan_standalone_cxx-i386 + +.PATH: ${TOPDIR}/lib/ubsan + +SRCS+= ${UBSAN_CXX_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +COPTS+= -fPIC +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m32.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64/Makefile Thu Aug 8 14:00:32 2019 @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:32 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.ubsan_standalone_cxx-x86_64 + +.PATH: ${TOPDIR}/lib/ubsan + +SRCS+= ${UBSAN_CXX_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +COPTS+= -fPIC +CPPFLAGS+= -I${TOPDIR}/lib + +.include "../m64.mk" + +.include "../syms.mk" + +FILES= libclang_rt.ubsan_standalone_cxx-x86_64.a.syms +FILESDIR= ${LIBDIR} + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-basic-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-basic-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-basic-m64/Makefile Thu Aug 8 14:00:32 2019 @@ -0,0 +1,37 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:32 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.xray-basic-x86_64 + +.PATH: ${TOPDIR}/lib/xray + +SRCS+= ${XRAY_BASIC_MODE_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +CPPFLAGS+= -I${TOPDIR}/lib +CPPFLAGS+= -I${TOPDIR}/include + +COPTS+= -fPIC + +.include "../m64.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-fdr-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-fdr-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-fdr-m64/Makefile Thu Aug 8 14:00:32 2019 @@ -0,0 +1,37 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:32 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.xray-fdr-x86_64 + +.PATH: ${TOPDIR}/lib/xray + +SRCS+= ${XRAY_FDR_MODE_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +CPPFLAGS+= -I${TOPDIR}/lib +CPPFLAGS+= -I${TOPDIR}/include + +COPTS+= -fPIC + +.include "../m64.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-m64/Makefile Thu Aug 8 14:00:32 2019 @@ -0,0 +1,46 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:32 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.xray-x86_64 + +.PATH: ${TOPDIR}/lib/xray + +SRCS+= ${XRAY_SOURCES} +SRCS+= ${XRAY_ARCH_SOURCES} + +.PATH: ${TOPDIR}/lib/sanitizer_common + +SRCS+= ${SANITIZER_SOURCES} +SRCS+= ${SANITIZER_LIBCDEP_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +# Macro defined in newer builtin subdirectory, it has to be empty on NetBSD +CPPFLAGS+= -DNO_EXEC_STACK_DIRECTIVE="" + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +CPPFLAGS+= -I${TOPDIR}/lib +CPPFLAGS+= -I${TOPDIR}/include + +COPTS+= -fPIC + +.include "../m64.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-profiling-m64/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-profiling-m64/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-profiling-m64/Makefile Thu Aug 8 14:00:32 2019 @@ -0,0 +1,39 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:32 kamil Exp $ + +NOSANITIZER= # defined + +.include "../common.mk" +.include "../sources.mk" + +.include <bsd.own.mk> + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +LIB= libclang_rt.xray-profiling-x86_64 + +.PATH: ${TOPDIR}/lib/xray + +SRCS+= ${XRAY_PROFILING_MODE_SOURCES} + +CXXFLAGS+= -fno-rtti -fno-exceptions -fno-builtin -fno-stack-protector + +LIBDIR= /usr/lib/clang/${CLANG_VER}/lib/netbsd +LIBISCXX= yes + +_LIB_PREFIX= +MKDEBUGLIB= no +MKLINT= no +MKPICINSTALL= no +MKPROFILE= no +MKSTATICLIB= yes + +CPPFLAGS+= -I${TOPDIR}/lib +CPPFLAGS+= -I${TOPDIR}/include + +CWARNFLAGS.clang+= -Wno-error=cast-qual-unrelated + +COPTS+= -fPIC + +.include "../m64.mk" + +.include <bsd.lib.mk> Index: src/external/bsd/compiler_rt/lib/clang/share/Makefile diff -u /dev/null src/external/bsd/compiler_rt/lib/clang/share/Makefile:1.1 --- /dev/null Thu Aug 8 14:00:33 2019 +++ src/external/bsd/compiler_rt/lib/clang/share/Makefile Thu Aug 8 14:00:32 2019 @@ -0,0 +1,17 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 14:00:32 kamil Exp $ + +TOPDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist + +NOOBJ= # defined + +.PATH: ${TOPDIR}/lib/asan +INCS+= asan_blacklist.txt + +.PATH: ${TOPDIR}/lib/msan +INCS+= msan_blacklist.txt + +.include <bsd.own.mk> + +INCSDIR= /usr/lib/clang/7.0.0/share + +.include <bsd.prog.mk>