Home
last modified time | relevance | path

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

/bionic/linker/
Dlinker_phdr.cpp961 size_t match_offset = 0; in phdr_table_map_gnu_relro() local
971 while (match_offset < size) { in phdr_table_map_gnu_relro()
973 while (match_offset < size && in phdr_table_map_gnu_relro()
974 memcmp(mem_base + match_offset, file_base + match_offset, PAGE_SIZE) != 0) { in phdr_table_map_gnu_relro()
975 match_offset += PAGE_SIZE; in phdr_table_map_gnu_relro()
979 size_t mismatch_offset = match_offset; in phdr_table_map_gnu_relro()
986 if (mismatch_offset > match_offset) { in phdr_table_map_gnu_relro()
987 void* map = mmap(mem_base + match_offset, mismatch_offset - match_offset, in phdr_table_map_gnu_relro()
988 PROT_READ, MAP_PRIVATE|MAP_FIXED, fd, *file_offset + match_offset); in phdr_table_map_gnu_relro()
995 match_offset = mismatch_offset; in phdr_table_map_gnu_relro()