aboutsummaryrefslogtreecommitdiff
path: root/win32/lib/kernel32.def
diff options
context:
space:
mode:
authorgrischka <grischka>2016-10-19 19:21:27 +0200
committergrischka <grischka>2016-10-19 19:21:27 +0200
commitbfd1c08d6c579445fe75dd633fbd9b0757cea5d0 (patch)
tree299e8c05200731561bd7f6bbe3d733fd9c3a4e94 /win32/lib/kernel32.def
parent02919cd27506e25dacdbe72dad1ae2718eb75991 (diff)
downloadtinycc-bfd1c08d6c579445fe75dd633fbd9b0757cea5d0.tar.gz
tinycc-bfd1c08d6c579445fe75dd633fbd9b0757cea5d0.tar.bz2
tccrun/win64: cleanup runtime function table
- call RtlDeleteFunctionTable (important for multiple compilations) - the RUNTIME_FUNCTION* is now at the beginning of the runtime memory. Therefor when tcc_relocate is called with user memory, this should be done manually before it is free'd: RtlDeleteFunctionTable(*(void**)user_mem); [ free(user_mem); ] - x86_64-gen.c: expand char/short return values to int
Diffstat (limited to 'win32/lib/kernel32.def')
-rw-r--r--win32/lib/kernel32.def1
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/lib/kernel32.def b/win32/lib/kernel32.def
index febd1d1..f03e17b 100644
--- a/win32/lib/kernel32.def
+++ b/win32/lib/kernel32.def
@@ -552,6 +552,7 @@ ResetNLSUserInfoCache
ResetWriteWatch
ResumeThread
RtlAddFunctionTable
+RtlDeleteFunctionTable
RtlFillMemory
RtlInstallFunctionTableCallback
RtlMoveMemory