Lines Matching defs:addr
26 * relationship between dso and its __cfi_check addr while loading a dso. CFI shadow is an array which stores shadow
31 * - invalid(0) : the target addr does not belongs to any loaded dso.
34 * The valid shadow value records the distance from the end of a LIBRARY_ALIGNMENT memory range to the __cfi_check addr
46 * 0x40000 __cfi_check addr = 0x42000 0x80000 0xA0000 0xC0000
63 * - First align up the target addr with LIBRARY_ALIGNMENT to locate the corresponding shadow value.
64 * - Then calculate the __cfi_check addr.
66 * In order for the algorithm to work well, the start addr of each dso should be aligned with LIBRARY_ALIGNMENT. */
85 /* Start addr of the CFI shadow */
122 static inline uintptr_t addr_to_offset(uintptr_t addr, int bits)
124 /* Convert addr to CFI shadow offset.
126 return (addr >> bits) << 1;
172 uintptr_t addr = (uintptr_t)func_ptr;
173 uintptr_t aligned_addr = ALIGN_DOWN(addr, shadow_alignment) + shadow_alignment;
195 uintptr_t addr = (uintptr_t)func_ptr & ((1ULL << 56) - 1);
198 uintptr_t addr = func_ptr;
202 uintptr_t offset = addr_to_offset(addr, shadow_granularity);
249 LD_LOGD("[CFI] [%{public}s] cfi_check addr[%{public}p]!\n", __FUNCTION__,
358 LD_LOGD("[CFI] [%{public}s] the cfi_shadow_start addr is %{public}p!\n", __FUNCTION__, cfi_shadow_start);