summaryrefslogtreecommitdiff
path: root/drivers/misc/lkdtm.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2016-02-23 01:09:29 +0300
committerKees Cook <keescook@chromium.org>2016-06-11 01:57:50 +0300
commit9a49a528dcf3c2022ff89f700d5d0345b9abf288 (patch)
tree946dc7b2e73cf54e9b349f881970d47755060c42 /drivers/misc/lkdtm.h
parent426f3a53d4a1ffbe228f268e5c4af148686b7346 (diff)
downloadlinux-9a49a528dcf3c2022ff89f700d5d0345b9abf288.tar.xz
lkdtm: add function for testing .rodata section
This adds a function that lives in the .rodata section. The section flags are corrected using objcopy since there is no way with gcc to declare section flags in an architecture-agnostic way. Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'drivers/misc/lkdtm.h')
-rw-r--r--drivers/misc/lkdtm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/misc/lkdtm.h b/drivers/misc/lkdtm.h
new file mode 100644
index 000000000000..9531fa3be4c3
--- /dev/null
+++ b/drivers/misc/lkdtm.h
@@ -0,0 +1,6 @@
+#ifndef __LKDTM_H
+#define __LKDTM_H
+
+void lkdtm_rodata_do_nothing(void);
+
+#endif