VirtualBox

Changeset 52213 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Jul 28, 2014 5:52:58 PM (10 years ago)
Author:
vboxsync
Message:

SUP,IPRT: Implemented forwarder support in RTLdr and cleaned up some the ordinal mess. Resolved imports when doing the process verification/purification runs other than SUPHARDNTVPKIND_CHILD_PURIFICATION. This is necessary since 32-bit windows combine .text with .rdata, and we don't want to overwrite the import table after it has been snapped. Include read-only sections in the verfication runs.

Location:
trunk/src/VBox/Runtime/testcase
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstLdr-2.cpp

    r48935 r52213  
    113113            {
    114114                RTUINTPTR Value;
    115                 rc = RTLdrGetSymbolEx(hLdrMod, pvBits, Addr, "Entrypoint", &Value);
     115                rc = RTLdrGetSymbolEx(hLdrMod, pvBits, Addr, UINT32_MAX, "Entrypoint", &Value);
    116116                if (RT_SUCCESS(rc))
    117117                {
  • trunk/src/VBox/Runtime/testcase/tstLdr-4.cpp

    r48935 r52213  
    176176            /* get the pointer. */
    177177            RTUINTPTR Value;
    178             rc = RTLdrGetSymbolEx(aLoads[i].hLdrMod, aLoads[i].pvBits, (uintptr_t)aLoads[i].pvBits, "DisasmTest1", &Value);
     178            rc = RTLdrGetSymbolEx(aLoads[i].hLdrMod, aLoads[i].pvBits, (uintptr_t)aLoads[i].pvBits,
     179                                  UINT32_MAX, "DisasmTest1", &Value);
    179180            if (rc == VERR_SYMBOL_NOT_FOUND)
    180                 rc = RTLdrGetSymbolEx(aLoads[i].hLdrMod, aLoads[i].pvBits, (uintptr_t)aLoads[i].pvBits, "_DisasmTest1", &Value);
     181                rc = RTLdrGetSymbolEx(aLoads[i].hLdrMod, aLoads[i].pvBits, (uintptr_t)aLoads[i].pvBits,
     182                                      UINT32_MAX, "_DisasmTest1", &Value);
    181183            if (RT_FAILURE(rc))
    182184            {
  • trunk/src/VBox/Runtime/testcase/tstLdr.cpp

    r48935 r52213  
    237237                {
    238238                    RTUINTPTR Value;
    239                     int rc = RTLdrGetSymbolEx(aLoads[i].hLdrMod, aLoads[i].pvBits, aLoads[i].Addr, aSyms[iSym].pszName, &Value);
     239                    int rc = RTLdrGetSymbolEx(aLoads[i].hLdrMod, aLoads[i].pvBits, aLoads[i].Addr,
     240                                              UINT32_MAX, aSyms[iSym].pszName, &Value);
    240241                    if (RT_SUCCESS(rc))
    241242                    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette