Lines Matching defs:random_offset
21 #define RELOCATED_KASLR(x) ((void *)((long)x + random_offset))
61 static inline void __init relocate_absolute(long random_offset)
209 unsigned long random_offset;
217 random_offset = get_random_boot() << 16;
218 random_offset &= (CONFIG_RANDOMIZE_BASE_MAX_OFFSET - 1);
219 if (random_offset < kernel_length)
220 random_offset += ALIGN(kernel_length, 0xffff);
275 static inline void __init update_reloc_offset(unsigned long *addr, long random_offset)
285 unsigned long random_offset = 0;
296 random_offset = (unsigned long)location_new - (unsigned long)(_text);
301 if (random_offset) {
313 reloc_offset += random_offset;
318 update_reloc_offset(&reloc_offset, random_offset);
324 relocate_absolute(random_offset);
326 return random_offset;