diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-08-05 14:56:48 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-08-05 14:56:48 +0200 |
commit | 3957e9b9dd191e0c4f7fc41d15a865357c097d9e (patch) | |
tree | a92fc7445933dab4bfadc8bdef66cba90a0001dc /tun/wintun/memmod/syscall_windows.go | |
parent | bad6caeb82edd0e22bdbcfa1ca544a5805109e14 (diff) |
memmod: register exception handler tables
Otherwise recent WDK binaries fail on ARM64, where an exception handler
is used for trapping an illegal instruction when ARMv8.1 atomics are
being tested for functionality.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun/wintun/memmod/syscall_windows.go')
-rw-r--r-- | tun/wintun/memmod/syscall_windows.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tun/wintun/memmod/syscall_windows.go b/tun/wintun/memmod/syscall_windows.go index b79be69..a111f92 100644 --- a/tun/wintun/memmod/syscall_windows.go +++ b/tun/wintun/memmod/syscall_windows.go @@ -370,6 +370,12 @@ const ( IMAGE_GUARD_CF_FUNCTION_TABLE_SIZE_SHIFT = 28 ) +type IMAGE_RUNTIME_FUNCTION_ENTRY struct { + BeginAddress uint32 + EndAddress uint32 + UnwindInfoAddress uint32 +} + const ( DLL_PROCESS_ATTACH = 1 DLL_THREAD_ATTACH = 2 |