summaryrefslogtreecommitdiffstats
path: root/config/kernel-objtool.m4
blob: 94e7dda2d16d88b43e21590156ad1c2608a330d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
dnl #
dnl # 4.6 API for compile-time stack validation
dnl #
AC_DEFUN([ZFS_AC_KERNEL_OBJTOOL], [
	AC_MSG_CHECKING([for compile-time stack validation (objtool)])
	ZFS_LINUX_TRY_COMPILE([
		#undef __ASSEMBLY__
		#include <asm/frame.h>
	],[
		#if !defined(FRAME_BEGIN)
		CTASSERT(1);
		#endif
	],[
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_KERNEL_OBJTOOL, 1, [kernel does stack verification])
	],[
		AC_MSG_RESULT(no)
	])
])