summaryrefslogtreecommitdiff
path: root/include/fortify-headers.h
diff options
context:
space:
mode:
authorsin2015-05-13 12:04:15 +0100
committersin2015-05-13 12:05:29 +0100
commit158782b3bb791eae3c97947944c7023452bfbc96 (patch)
treeb76e70744ab0a2f76d781a65a0456b1b010c54df /include/fortify-headers.h
parent316a48653315b4bc36d8c50b542471b18441c9d5 (diff)
Add fortify_fn() helper in fortify-headers.h
Diffstat (limited to 'include/fortify-headers.h')
-rw-r--r--include/fortify-headers.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/fortify-headers.h b/include/fortify-headers.h
new file mode 100644
index 0000000..c64963f
--- /dev/null
+++ b/include/fortify-headers.h
@@ -0,0 +1,7 @@
1#ifndef _FORTIFY_HEADERS_H
2#define _FORTIFY_HEADERS_H
3
4#define fortify_fn(fn) __typeof__(fn) __orig_##fn __asm__(__USER_LABEL_PREFIX__ #fn); \
5 extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__))
6
7#endif