From 158782b3bb791eae3c97947944c7023452bfbc96 Mon Sep 17 00:00:00 2001 From: sin Date: Wed, 13 May 2015 12:04:15 +0100 Subject: Add fortify_fn() helper in fortify-headers.h --- include/fortify-headers.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 include/fortify-headers.h (limited to 'include/fortify-headers.h') 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 @@ +#ifndef _FORTIFY_HEADERS_H +#define _FORTIFY_HEADERS_H + +#define fortify_fn(fn) __typeof__(fn) __orig_##fn __asm__(__USER_LABEL_PREFIX__ #fn); \ + extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) + +#endif -- cgit v1.3