tccrun/win64: cleanup runtime function table
commitbfd1c08d6c579445fe75dd633fbd9b0757cea5d0
authorgrischka <grischka>
Wed, 19 Oct 2016 17:21:27 +0000 (19 19:21 +0200)
committergrischka <grischka>
Wed, 19 Oct 2016 17:21:27 +0000 (19 19:21 +0200)
tree299e8c05200731561bd7f6bbe3d733fd9c3a4e94
parent02919cd27506e25dacdbe72dad1ae2718eb75991
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
libtcc.c
tcc.h
tccelf.c
tccrun.c
win32/lib/kernel32.def
x86_64-gen.c