Török Edvin
670adde2bc
Fix bogus warning about startup.cbc in nojit mode.
...
Fixes this bogus message:
LibClamAV Warning: Cannot prepare for JIT, because it has already been converted to interpreter
2010-10-18 14:28:56 +03:00
Török Edvin
c85060ff79
Move environment detection code to bytecode_detect.c.
...
This is in preparation for bug #2078 , so that the bytecodes can turn themselves off
based on more than just the arch itself.
2010-07-29 13:48:13 +03:00
Török Edvin
a5a19f4518
bytecode: PaX and selfcheck.
...
Detect PaX and fallback to intepreter if needed (bb #2092 ).
Recent PaX versions deny the RWX mapping, but older versions silently change it
to RW, which causes the program to die as soon as it tries to execute JITed
code.
Add selfcheck on startup (bb #2092 ).
This will run a very simple bytecode on startup in both JIT and interpreter
mode. The bytecode only calls 1 libclamav API and returns.
2010-07-22 22:34:07 +03:00
Török Edvin
2a7f1cdaf5
Print C++ compiler version.
...
This requires exporting a function from libclamav, since clamconf is not C++...
2010-04-19 18:35:30 +03:00
Török Edvin
7f6b55a124
Downgrade some messages to debug.
2010-03-24 17:55:04 +02:00
Török Edvin
6eeadbfeda
dconf for bytecode.
2010-02-15 17:32:41 +02:00
Török Edvin
847d7fc1b8
2009->2010
2010-02-02 14:03:32 +02:00
Török Edvin
c0afc51729
Don't use C++ comments in C code.
2010-01-27 12:07:08 +02:00
Tomasz Kojm
12c6a97e9b
fix some compiler warnings
2010-01-12 16:16:08 +01:00
Török Edvin
d0934caf99
Distcheck fixes.
2009-12-11 21:02:19 +02:00
Török Edvin
65c740d7d8
Add support for tracing (if bytecode compiled with support).
...
TODO: global id 0 is now a null pointer, need to adjust rest of conversion code
accordingly.
2009-12-08 23:02:49 +02:00
Török Edvin
2922746173
Fix make distcheck.
2009-09-07 19:29:50 +03:00
Török Edvin
2487a4a342
Various bytecode JIT fixes, teach clamconf about JIT, and make sure make check runs the JIT!
2009-08-28 20:07:25 +03:00
Török Edvin
a97998d294
Fix build with --disable-llvm.
2009-08-28 16:57:18 +03:00
Török Edvin
3b33bd6830
Minimal LLVM codegen.
2009-08-27 18:12:39 +03:00
Török Edvin
d1487222f7
Draft of libclamav <-> jit communication.
2009-08-25 19:06:32 +03:00