summaryrefslogtreecommitdiff
path: root/include/linux/elf-randomize.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/elf-randomize.h')
-rw-r--r--include/linux/elf-randomize.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/elf-randomize.h b/include/linux/elf-randomize.h
new file mode 100644
index 000000000000..7a4eda02d2b1
--- /dev/null
+++ b/include/linux/elf-randomize.h
@@ -0,0 +1,10 @@
+#ifndef _ELF_RANDOMIZE_H
+#define _ELF_RANDOMIZE_H
+
+#ifndef CONFIG_ARCH_HAS_ELF_RANDOMIZE
+static inline unsigned long arch_mmap_rnd(void) { return 0; }
+#else
+extern unsigned long arch_mmap_rnd(void);
+#endif
+
+#endif