]>
Commit | Line | Data |
---|---|---|
650383f2 GN |
1 | dnl # |
2 | dnl # 4.6 API for compile-time stack validation | |
3 | dnl # | |
4 | AC_DEFUN([ZFS_AC_KERNEL_OBJTOOL], [ | |
5 | AC_MSG_CHECKING([for compile-time stack validation (objtool)]) | |
6 | ZFS_LINUX_TRY_COMPILE([ | |
7 | #undef __ASSEMBLY__ | |
8 | #include <asm/frame.h> | |
9 | ],[ | |
10 | #if !defined(FRAME_BEGIN) | |
11 | CTASSERT(1); | |
12 | #endif | |
13 | ],[ | |
14 | AC_MSG_RESULT(yes) | |
15 | AC_DEFINE(HAVE_KERNEL_OBJTOOL, 1, [kernel does stack verification]) | |
16 | ],[ | |
17 | AC_MSG_RESULT(no) | |
18 | ]) | |
19 | ]) |