/** * Loads the module containing the main function. This function should be called last for correct * symbol resolution. * * @param moduleFile the file to load * @return the ExecutableImage class for the loaded module * @throws IOException * @throws BinaryParseException */ public ExecutableImage loadMainModule(File moduleFile) throws IOException, BinaryParseException { ExecutableImage module = loadModule(moduleFile); mainModule = module; setEntryAddress(module.getEntryPoint()); installStubs(); return module; }