tstLdrObj.cpp revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
/* $Id$ */
/** @file
* InnoTek Portable Runtime - RTLdr test object.
*
* We use precompiled versions of this object for testing all the loaders.
*
* This is not supposed to be pretty or usable code, just something which
* make life difficult for the loader.
*/
/*
* Copyright (C) 2006 InnoTek Systemberatung GmbH
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License as published by the Free Software Foundation,
* in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
* distribution. VirtualBox OSE is distributed in the hope that it will
* be useful, but WITHOUT ANY WARRANTY of any kind.
*
* If you received this file as part of a commercial VirtualBox
* distribution, then only the terms of your commercial VirtualBox
* license agreement apply instead of the previous paragraph.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#ifndef IN_GC
# error "not IN_GC!"
#endif
/*******************************************************************************
* Global Variables *
*******************************************************************************/
static const char szStr1[] = "some readonly string";
static char achBss[8192];
#ifdef VBOX_SOME_IMPORT_FUNCTION
#endif
{
g_VM.fRawR0Enabled = true;
g_VM.fRawR3Enabled = true;
g_VM.fForcedActions = 0;
#ifdef VBOX_SOME_IMPORT_FUNCTION
return SomeImportFunction();
#else
return 0;
#endif
}
{
return g_VM.fForcedActions;
}
{
}
{
}
{
static unsigned cb;
DISCPUSTATE Cpu = {0};
return (void *)(uintptr_t)&SomeExportFunction1;
}
{
}