diff options
| author | sin | 2015-05-13 12:04:15 +0100 |
|---|---|---|
| committer | sin | 2015-05-13 12:05:29 +0100 |
| commit | 158782b3bb791eae3c97947944c7023452bfbc96 (patch) | |
| tree | b76e70744ab0a2f76d781a65a0456b1b010c54df /include/fortify-headers.h | |
| parent | 316a48653315b4bc36d8c50b542471b18441c9d5 (diff) | |
Add fortify_fn() helper in fortify-headers.h
Diffstat (limited to 'include/fortify-headers.h')
| -rw-r--r-- | include/fortify-headers.h | 7 |
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 | ||
