499fe48de8
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.)
25 lines
467 B
Makefile
25 lines
467 B
Makefile
# $FreeBSD$
|
|
|
|
PACKAGE=lib${LIB}
|
|
LIBEXECINFO= ${SRCTOP}/contrib/libexecinfo
|
|
|
|
LIB= execinfo
|
|
SHLIB_MAJOR= 1
|
|
|
|
.PATH: ${LIBEXECINFO}
|
|
|
|
INCS= execinfo.h
|
|
SRCS= backtrace.c symtab.c unwind.c
|
|
CFLAGS+= -I${SRCTOP}/contrib/libunwind/include
|
|
|
|
LIBADD= elf
|
|
|
|
MAN= backtrace.3
|
|
|
|
MLINKS+= backtrace.3 backtrace_symbols.3
|
|
MLINKS+= backtrace.3 backtrace_symbols_fmt.3
|
|
MLINKS+= backtrace.3 backtrace_symbols_fd.3
|
|
MLINKS+= backtrace.3 backtrace_symbols_fd_fmt.3
|
|
|
|
.include <bsd.lib.mk>
|