diff options
author | 2017-09-24 22:41:55 -0700 | |
---|---|---|
committer | 2017-09-24 22:41:55 -0700 | |
commit | 25eabb13c7d67ae32298015c5e28d00f604f412c (patch) | |
tree | 5bd75c2c1e385c79425bb099f0d19db7fb9c391f /include/linux/compiler-gcc.h | |
parent | security: fix description of values returned by cap_inode_need_killpriv (diff) | |
parent | Linux 4.14-rc2 (diff) | |
download | wireguard-linux-25eabb13c7d67ae32298015c5e28d00f604f412c.tar.xz wireguard-linux-25eabb13c7d67ae32298015c5e28d00f604f412c.zip |
Merge tag 'v4.14-rc2' into next-general
Linux 4.14-rc2
Sync to v4.14-rc2 for security subsystem developers to track.
Diffstat (limited to '')
-rw-r--r-- | include/linux/compiler-gcc.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index bdb80c4aef6e..16d41de92ee3 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -166,6 +166,8 @@ #if GCC_VERSION >= 40100 # define __compiletime_object_size(obj) __builtin_object_size(obj, 0) + +#define __nostackprotector __attribute__((__optimize__("no-stack-protector"))) #endif #if GCC_VERSION >= 40300 @@ -201,17 +203,6 @@ #endif #endif -#ifdef CONFIG_STACK_VALIDATION -#define annotate_unreachable() ({ \ - asm("%c0:\t\n" \ - ".pushsection .discard.unreachable\t\n" \ - ".long %c0b - .\t\n" \ - ".popsection\t\n" : : "i" (__LINE__)); \ -}) -#else -#define annotate_unreachable() -#endif - /* * Mark a position in code as unreachable. This can be used to * suppress control flow warnings after asm blocks that transfer |