aboutsummaryrefslogtreecommitdiff
path: root/lib/libexecinfo
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2019-10-26 06:59:59 +0000
committerConrad Meyer <cem@FreeBSD.org>2019-10-26 06:59:59 +0000
commit499fe48de8938d4c7b0a91e20eb6c16db9d55633 (patch)
tree600d632da24aaf3071939a11c02a428b08a3b897 /lib/libexecinfo
parentbddf82472993dba38c2957b29f44d4684497b001 (diff)
downloadsrc-499fe48de8938d4c7b0a91e20eb6c16db9d55633.tar.gz
src-499fe48de8938d4c7b0a91e20eb6c16db9d55633.zip
Sync up with NetBSD libexecinfo changes 2014-2019
Drop portions that are unlit or redundant with llvm-libunwind: builtin.c, unwind.h, and unwind_arm_ehabi_stub.c. This code should now work with -fPIE binaries, should we choose to build any that way. When backtrace() array is full, signal an error so the underlying Itanium-style C++ exception handling library (llvm-libunwind) knows to stop tracing instead of continuing. (It should stop on its own when it finishes unwinding, so this is mostly an extra seatbelt against an infinite loop bug in the unwinder.)
Notes
Notes: svn path=/head/; revision=354112
Diffstat (limited to 'lib/libexecinfo')
-rw-r--r--lib/libexecinfo/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libexecinfo/Makefile b/lib/libexecinfo/Makefile
index 9086d18d4347..fed41fa1d4a3 100644
--- a/lib/libexecinfo/Makefile
+++ b/lib/libexecinfo/Makefile
@@ -10,6 +10,7 @@ SHLIB_MAJOR= 1
INCS= execinfo.h
SRCS= backtrace.c symtab.c unwind.c
+CFLAGS+= -I${SRCTOP}/contrib/libunwind/include
LIBADD= elf