/src/sys/external/bsd/compiler_rt/dist/lib/interception/ |
interception_win.cc | 983 // We have two parallel arrays: the import address table (IAT) and the table 985 // the IAT to hold imported addresses and leaves the name table in 988 RVAPtr<IMAGE_THUNK_DATA> iat(module, imports->FirstThunk); local in function:__interception::OverrideImportedFunction 989 for (; name_table->u1.Ordinal != 0; ++name_table, ++iat) { 1001 // Now we have the correct IAT entry. Do the swap. We have to make the page 1004 *orig_old_func = iat->u1.AddressOfData; 1006 if (!VirtualProtect(&iat->u1.AddressOfData, 4, PAGE_EXECUTE_READWRITE, 1009 iat->u1.AddressOfData = new_function; 1010 if (!VirtualProtect(&iat->u1.AddressOfData, 4, old_prot, &unused_prot))
|
interception_win.cc | 983 // We have two parallel arrays: the import address table (IAT) and the table 985 // the IAT to hold imported addresses and leaves the name table in 988 RVAPtr<IMAGE_THUNK_DATA> iat(module, imports->FirstThunk); local in function:__interception::OverrideImportedFunction 989 for (; name_table->u1.Ordinal != 0; ++name_table, ++iat) { 1001 // Now we have the correct IAT entry. Do the swap. We have to make the page 1004 *orig_old_func = iat->u1.AddressOfData; 1006 if (!VirtualProtect(&iat->u1.AddressOfData, 4, PAGE_EXECUTE_READWRITE, 1009 iat->u1.AddressOfData = new_function; 1010 if (!VirtualProtect(&iat->u1.AddressOfData, 4, old_prot, &unused_prot))
|