Home
last modified time | relevance | path

Searched refs:phdr_size (Results 1 – 6 of 6) sorted by relevance

/external/elfutils/libelf/
Delf_getphdrnum.c116 size_t phdr_size = (elf->class == ELFCLASS32 in __elf_getphdrnum_chk_rdlock() local
118 if (unlikely (*dst > SIZE_MAX / phdr_size)) in __elf_getphdrnum_chk_rdlock()
125 if (unlikely (elf->maximum_size - off < *dst * phdr_size)) in __elf_getphdrnum_chk_rdlock()
126 *dst = (elf->maximum_size - off) / phdr_size; in __elf_getphdrnum_chk_rdlock()
Delf32_updatefile.c630 size_t phdr_size = sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum; in __elfw2() local
632 phdr_size, ehdr->e_phoff) in __elfw2()
633 != phdr_size)) in __elfw2()
/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/
Dcore-pkey.c201 size_t phdr_size; in check_core_file() local
216 phdr_size = sizeof(*phdr) * ehdr->e_phnum; in check_core_file()
219 FAIL_IF(ehdr->e_phoff + phdr_size < ehdr->e_phoff); in check_core_file()
220 FAIL_IF(ehdr->e_phoff + phdr_size > core_size); in check_core_file()
224 (void *) phdr < p + ehdr->e_phoff + phdr_size; in check_core_file()
229 FAIL_IF((void *) phdr >= p + ehdr->e_phoff + phdr_size); in check_core_file()
/external/elfutils/libdwfl/
Delf-from-memory.c201 size_t phdr_size = class32 ? sizeof (Elf32_Phdr) : sizeof (Elf64_Phdr); in elf_from_remote_memory() local
202 if (unlikely (phnum > SIZE_MAX / phdr_size)) in elf_from_remote_memory()
207 const size_t phdrsp_bytes = phnum * phdr_size; in elf_from_remote_memory()
Ddwfl_segment_report_module.c458 size_t phdr_size = class32 ? sizeof (Elf32_Phdr) : sizeof (Elf64_Phdr); in dwfl_segment_report_module() local
459 if (unlikely (phnum > SIZE_MAX / phdr_size)) in dwfl_segment_report_module()
461 const size_t phdrsp_bytes = phnum * phdr_size; in dwfl_segment_report_module()
Ddwfl_module_getdwarf.c396 size_t phdr_size = class32 ? sizeof (Elf32_Phdr) : sizeof (Elf64_Phdr); in find_prelink_address_sync() local
397 if (unlikely (phnum > SIZE_MAX / phdr_size)) in find_prelink_address_sync()
399 const size_t phdrs_bytes = phnum * phdr_size; in find_prelink_address_sync()