I am working on running PureCoverage on our executables. I faced 2 problems initially but one was resolved after linking the object files with relocation information using the link.exe option /fixed:no . Now, I am getting the error mentioned below. Error occurs in one of our dll’s which is not being used directly by the executable.
Language used : C
Windows x64
Windows 2008 Server x64 SDK Compiler
There is a solution given at the following site
http://www-01.ibm.com/support/docview.wss?uid=swg1PK32184
Problem summary
code being instrumented was using short (1 byte) branch
instructions, which were inadequate in instrumented code.
Problem conclusion
Replaced short branch instructions with long ones
->No idea what this means or how to solve change this. I also tried to compile with /OPT:NOREF and /OPT:NOICF. But it didnt help. ------------------- Error Dump ----------------
PureCoverage for Windows,
(C) Copyright IBM Corporation. 1993, 2012. All Rights Reserved.
Version 7.0.1.0-003 64-bit ; Build: 20120410.1500;
Windows Server 2008 R2 Enterprise 6.1 7601 Service Pack 1 Multiprocessor Free
Instrumenting:
FRUIT.exe 1652736 bytes
NTDLL.DLL 1731920 bytes
ADVAPI32.DLL 877056 bytes
ADVAPI32.DLL 877056 bytes
MSVCR90.DLL 624464 bytes
WS2_32.DLL 297984 bytes
WS2_32.DLL 297984 bytes
VERSION.DLL 29184 bytes
KERNEL32.DLL 1162752 bytes
APPLE.DLL 646144 bytes
LITCHIE.DLL 44032 bytes
PEARS.DLL 648192 bytes
MSVCRT.DLL 634880 bytes
KERNELBASE.DLL 421888 bytes
SECHOST.DLL 113664 bytes
SECHOST.DLL 113664 bytes
RPCRT4.DLL 1219584 bytes
RPCRT4.DLL 1219584 bytes
PCWUM.DLL 36864 bytes
PCWUM.DLL 36864 bytes
CRYPTSP.DLL 79872 bytes
CRYPTSP.DLL 79872 bytes
NSI.DLL 13824 bytes
NSI.DLL 13824 bytes
COCOA.DLL 3886592 bytes
PureCoverage: While processing file C:\CODE\COCOA.DLL:
Error: Unable to direct patch a reference from 0x180222afd (new) to target 0xa0
System error code: The system cannot find the file specified.
If possible, please send a bug report to [email protected] including the product
name and version (PureCoverage: 7.0.1.0-003 64-bit 20120410.1500 WindowsNT OS: Windows),
this and any preceding error messages, and ideally a copy
of any EXE, DLL or data files involved.
Thank you.