Searched refs:match_offset (Results 1 – 1 of 1) sorted by relevance
1032 size_t match_offset = 0; in phdr_table_map_gnu_relro() local1042 while (match_offset < size) { in phdr_table_map_gnu_relro()1044 while (match_offset < size && in phdr_table_map_gnu_relro()1045 memcmp(mem_base + match_offset, file_base + match_offset, PAGE_SIZE) != 0) { in phdr_table_map_gnu_relro()1046 match_offset += PAGE_SIZE; in phdr_table_map_gnu_relro()1050 size_t mismatch_offset = match_offset; in phdr_table_map_gnu_relro()1057 if (mismatch_offset > match_offset) { in phdr_table_map_gnu_relro()1058 void* map = mmap(mem_base + match_offset, mismatch_offset - match_offset, in phdr_table_map_gnu_relro()1059 PROT_READ, MAP_PRIVATE|MAP_FIXED, fd, *file_offset + match_offset); in phdr_table_map_gnu_relro()1066 match_offset = mismatch_offset; in phdr_table_map_gnu_relro()