Lines Matching defs:random_offset
20 #define RELOCATED_KASLR(x) ((void *)((long)x + random_offset))
44 static inline void __init relocate_absolute(long random_offset)
133 unsigned long random_offset;
141 random_offset = get_random_boot() << 16;
142 random_offset &= (CONFIG_RANDOMIZE_BASE_MAX_OFFSET - 1);
143 if (random_offset < kernel_length)
144 random_offset += ALIGN(kernel_length, 0xffff);
161 static inline void __init update_reloc_offset(unsigned long *addr, long random_offset)
171 unsigned long random_offset = 0;
182 random_offset = (unsigned long)location_new - (unsigned long)(_text);
186 if (random_offset) {
198 reloc_offset += random_offset;
203 update_reloc_offset(&reloc_offset, random_offset);
209 relocate_absolute(random_offset);
211 return random_offset;