Closed artemdinaburg closed 4 years ago
Same problem
This makes mcsema entirely unusable on Windows. It would be great if somebody fixed this. I tried compiling it myself but I couldn't get the toolchain working.
I think this may be a relatively easy fix. I am currently thinking to set up both a relative directory (maybe to installation artifacts if I can wrangle enough CMake) and also a path that can be passed as a command line argument.
I can make a quick fix with a command line flag :-)
@TheGreatRambler Looking at the current code, it should also look in the REMILL_INSTALL_SEMANTICS_DIR
directory:
Placing things there may work for you now.
All these paths are defined for linux, so I can't be at all sure what these paths translate to on Windows. I'm looking for a portable solution too, an install path is a dangerous thing
@TheGreatRambler you can now specify one or ore search directories with --semantics_search_paths /path/to:/other/path/to
. Directories are colon-separated. The directory should contain the semantics file associated with your architecture, e.g. aarch64.bc
. You should be able to find these files inside both the build directory and the install directory.
Great, thank you
Currently remill only looks for semantics in a hardcoded absolute path; it would be nicer to look for them in a path relative to the remill execuable or one specified via flags.
Strace output: