From 81eceff6658d6e750c7c0d0810ec3d6e66a0cd51 Mon Sep 17 00:00:00 2001 From: Sedat Dilek Date: Tue, 22 May 2018 12:00:56 +0200 Subject: [PATCH 3/4] compiler-clang.h: Add __nostackprotector attribute v2 --- include/linux/compiler-clang.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h index 070f85d92c15..3fb36173bb99 100644 --- a/include/linux/compiler-clang.h +++ b/include/linux/compiler-clang.h @@ -21,3 +21,10 @@ #ifdef __noretpoline #undef __noretpoline #endif + +/* Clang version 7 (>= svn331925) supports no_stack_protector attribute + * which disables the stack protector on the specified function. + * For details see . + */ +#undef __nostackprotector +#define __nostackprotector __attribute__((no_stack_protector)) -- 2.17.0