Searched refs:kCodeSize (Results 1 – 2 of 2) sorted by relevance
/external/llvm-project/compiler-rt/test/cfi/cross-dso/icall/ |
D | dlopen.cpp | 76 static const int kCodeSize = 4096; variable 77 static char saved_code[kCodeSize]; 82 memcpy(saved_code, real_start, kCodeSize); in save_code() 87 (char *)mmap(real_start, kCodeSize, PROT_READ | PROT_WRITE | PROT_EXEC, in restore_code() 90 memcpy(code, saved_code, kCodeSize); in restore_code() 91 __builtin___clear_cache(code, code + kCodeSize); in restore_code()
|
/external/compiler-rt/test/cfi/cross-dso/ |
D | dlopen.cpp | 76 static const int kCodeSize = 4096; variable 77 static char saved_code[kCodeSize]; 82 memcpy(saved_code, real_start, kCodeSize); in save_code() 86 char *code = (char *)mmap(real_start, kCodeSize, PROT_WRITE | PROT_EXEC, in restore_code() 89 memcpy(code, saved_code, kCodeSize); in restore_code()
|