| 372 | |
| 373 | |
| 374 | void RemoveExceptionSupport(const Pe::PeNative& mappedPe) { |
| 375 | |
| 376 | auto exceptionTableSize = 0ul; |
| 377 | auto exceptionTable = GetExceptionTables(mappedPe, exceptionTableSize); |
| 378 | |
| 379 | #if defined(__x86_64__) || defined(_M_X64) |
| 380 | //Add the runtime function table so that SEH/C++ exceptions work for x64 PE's |
| 381 | RtlDeleteFunctionTable((PRUNTIME_FUNCTION)mappedPe.exceptions().descriptor().ptr); |
| 382 | #endif |
| 383 | |
| 384 | RtlpDeleteInvertedFunctionTableEntry(PVOID(mappedPe.base())); |
| 385 | } |
| 386 | |
| 387 | static void TlsCallbacks(Logger logger, const Pe::PeNative& mappedPe){ |
| 388 |
no test coverage detected