summaryrefslogtreecommitdiff
path: root/include/fortify-headers.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/fortify-headers.h')
-rw-r--r--include/fortify-headers.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/fortify-headers.h b/include/fortify-headers.h
index 72b99ec..fcb862d 100644
--- a/include/fortify-headers.h
+++ b/include/fortify-headers.h
@@ -16,7 +16,9 @@
16#ifndef _FORTIFY_HEADERS_H 16#ifndef _FORTIFY_HEADERS_H
17#define _FORTIFY_HEADERS_H 17#define _FORTIFY_HEADERS_H
18 18
19#define fortify_fn(fn) __typeof__(fn) __orig_##fn __asm__(__USER_LABEL_PREFIX__ #fn); \ 19#define _FORTIFY_STR(s) #s
20#define _FORTIFY_ORIG(p,fn) __typeof__(fn) __orig_##fn __asm__(_FORTIFY_STR(p) #fn)
21#define fortify_fn(fn) _FORTIFY_ORIG(__USER_LABEL_PREFIX__,fn); \
20 extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) 22 extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__))
21 23
22#endif 24#endif