|
@@ -203,11 +203,16 @@
|
|
|
|
|
|
#ifdef CONFIG_STACK_VALIDATION
|
|
#ifdef CONFIG_STACK_VALIDATION
|
|
#define annotate_unreachable() ({ \
|
|
#define annotate_unreachable() ({ \
|
|
- asm("%c0:\t\n" \
|
|
|
|
- ".pushsection .discard.unreachable\t\n" \
|
|
|
|
- ".long %c0b - .\t\n" \
|
|
|
|
- ".popsection\t\n" : : "i" (__LINE__)); \
|
|
|
|
|
|
+ asm("%c0:\n\t" \
|
|
|
|
+ ".pushsection .discard.unreachable\n\t" \
|
|
|
|
+ ".long %c0b - .\n\t" \
|
|
|
|
+ ".popsection\n\t" : : "i" (__LINE__)); \
|
|
})
|
|
})
|
|
|
|
+#define ASM_UNREACHABLE \
|
|
|
|
+ "999:\n\t" \
|
|
|
|
+ ".pushsection .discard.unreachable\n\t" \
|
|
|
|
+ ".long 999b - .\n\t" \
|
|
|
|
+ ".popsection\n\t"
|
|
#else
|
|
#else
|
|
#define annotate_unreachable()
|
|
#define annotate_unreachable()
|
|
#endif
|
|
#endif
|