Blame view
include/linux/elf-randomize.h
544 Bytes
2b68f6cae mm: expose arch_m... |
1 2 |
#ifndef _ELF_RANDOMIZE_H #define _ELF_RANDOMIZE_H |
204db6ed1 mm: fold arch_ran... |
3 |
struct mm_struct; |
2b68f6cae mm: expose arch_m... |
4 5 |
#ifndef CONFIG_ARCH_HAS_ELF_RANDOMIZE static inline unsigned long arch_mmap_rnd(void) { return 0; } |
204db6ed1 mm: fold arch_ran... |
6 7 8 9 10 11 |
# if defined(arch_randomize_brk) && defined(CONFIG_COMPAT_BRK) # define compat_brk_randomized # endif # ifndef arch_randomize_brk # define arch_randomize_brk(mm) (mm->brk) # endif |
2b68f6cae mm: expose arch_m... |
12 13 |
#else extern unsigned long arch_mmap_rnd(void); |
204db6ed1 mm: fold arch_ran... |
14 15 16 17 |
extern unsigned long arch_randomize_brk(struct mm_struct *mm); # ifdef CONFIG_COMPAT_BRK # define compat_brk_randomized # endif |
2b68f6cae mm: expose arch_m... |
18 19 20 |
#endif #endif |