Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common Cherr...
details: https://anonhg.NetBSD.org/src/rev/6e79c4533a8b
branches: trunk
changeset: 967894:6e79c4533a8b
user: kamil <kamil%NetBSD.org@localhost>
date: Fri Dec 27 00:35:05 2019 +0000
description:
Cherry-pick LLVM upstream patch to fix build of compiler-rt
commit 52b5fe5f45b1908e140e05a4eceaaac7002be768
Author: Kamil Rytarowski <n54%gmx.com@localhost>
Date: Wed Dec 25 04:05:10 2019 +0100
[compiler-rt] [netbsd] Define _RTLD_SOURCE to fix build
The TLS base (LWP private pointer) functions are namespaced and
hidden i.e. inside the _RTLD_SOURCE namespace.
diffstat:
sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_linux_libcdep.cc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r 7efa6a0c7d37 -r 6e79c4533a8b sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_linux_libcdep.cc
--- a/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_linux_libcdep.cc Fri Dec 27 00:32:16 2019 +0000
+++ b/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_linux_libcdep.cc Fri Dec 27 00:35:05 2019 +0000
@@ -28,6 +28,10 @@
#include "sanitizer_placement_new.h"
#include "sanitizer_procmaps.h"
+#if SANITIZER_NETBSD
+#define _RTLD_SOURCE // Fast LWP private pointer getters in ThreadSelfTlsTcb().
+#endif
+
#include <dlfcn.h> // for dlsym()
#include <link.h>
#include <pthread.h>
Home |
Main Index |
Thread Index |
Old Index