summaryrefslogtreecommitdiff
path: root/src/binder
diff options
context:
space:
mode:
Diffstat (limited to 'src/binder')
-rw-r--r--src/binder/assembly.cpp1
-rw-r--r--src/binder/assemblybinder.cpp5
-rw-r--r--src/binder/clrprivbinderassemblyloadcontext.cpp1
-rw-r--r--src/binder/clrprivbindercoreclr.cpp1
4 files changed, 8 insertions, 0 deletions
diff --git a/src/binder/assembly.cpp b/src/binder/assembly.cpp
index 8fcc7cf54f..a275c85271 100644
--- a/src/binder/assembly.cpp
+++ b/src/binder/assembly.cpp
@@ -191,6 +191,7 @@ Exit:
if (!fInspectionOnly && !IsValidArchitecture(kAssemblyArchitecture))
{
// Assembly image can't be executed on this platform
+ fprintf(stderr, "@@[SR] %s:%d, fInspectionOnly(%d), IsValidArchitecture(%d)\n", __FILE__, __LINE__, fInspectionOnly, IsValidArchitecture(kAssemblyArchitecture));
IF_FAIL_GO(HRESULT_FROM_WIN32(ERROR_BAD_FORMAT));
}
diff --git a/src/binder/assemblybinder.cpp b/src/binder/assemblybinder.cpp
index 7c0aa8077e..89f4a06eb0 100644
--- a/src/binder/assemblybinder.cpp
+++ b/src/binder/assemblybinder.cpp
@@ -517,6 +517,7 @@ namespace BINDER_SPACE
{
// Not a PE. Shouldn't ever get here.
BINDER_LOG(W("Not a PE!"));
+ fprintf(stderr, "@@[SR] %s:%d, Not a PE\n", __FILE__, __LINE__);
IF_FAIL_GO(HRESULT_FROM_WIN32(ERROR_BAD_FORMAT));
}
else
@@ -535,6 +536,7 @@ namespace BINDER_SPACE
{
// Invalid
BINDER_LOG(W("CLRPeKind & pe32BitRequired is true"));
+ fprintf(stderr, "@@[SR] %s:%d, Not a PE\n", __FILE__, __LINE__);
IF_FAIL_GO(HRESULT_FROM_WIN32(ERROR_BAD_FORMAT));
}
@@ -548,6 +550,7 @@ namespace BINDER_SPACE
{
// We don't support other architectures
BINDER_LOG(W("Unknown architecture"));
+ fprintf(stderr, "@@[SR] %s:%d, Not a PE\n", __FILE__, __LINE__);
IF_FAIL_GO(HRESULT_FROM_WIN32(ERROR_BAD_FORMAT));
}
}
@@ -562,6 +565,7 @@ namespace BINDER_SPACE
{
// Not supported
BINDER_LOG(W("32-bit, non-agnostic"));
+ fprintf(stderr, "@@[SR] %s:%d, Not a PE\n", __FILE__, __LINE__);
IF_FAIL_GO(HRESULT_FROM_WIN32(ERROR_BAD_FORMAT));
}
}
@@ -852,6 +856,7 @@ namespace BINDER_SPACE
// Validate architecture
if (!fInspectionOnly && !Assembly::IsValidArchitecture(pAssemblyName->GetArchitecture()))
{
+ fprintf(stderr, "@@[SR] %s:%d, Not a PE\n", __FILE__, __LINE__);
IF_FAIL_GO(HRESULT_FROM_WIN32(ERROR_BAD_FORMAT));
}
diff --git a/src/binder/clrprivbinderassemblyloadcontext.cpp b/src/binder/clrprivbinderassemblyloadcontext.cpp
index e6f957aabe..c6f729d298 100644
--- a/src/binder/clrprivbinderassemblyloadcontext.cpp
+++ b/src/binder/clrprivbinderassemblyloadcontext.cpp
@@ -145,6 +145,7 @@ HRESULT CLRPrivBinderAssemblyLoadContext::BindUsingPEImage( /* in */ PEImage *pP
// Validate architecture
if (!BINDER_SPACE::Assembly::IsValidArchitecture(pAssemblyName->GetArchitecture()))
{
+ fprintf(stderr, "@@[SR] %s:%d\n");
IF_FAIL_GO(HRESULT_FROM_WIN32(ERROR_BAD_FORMAT));
}
diff --git a/src/binder/clrprivbindercoreclr.cpp b/src/binder/clrprivbindercoreclr.cpp
index d756454edb..2c1b9bdfa0 100644
--- a/src/binder/clrprivbindercoreclr.cpp
+++ b/src/binder/clrprivbindercoreclr.cpp
@@ -136,6 +136,7 @@ HRESULT CLRPrivBinderCoreCLR::BindUsingPEImage( /* in */ PEImage *pPEImage,
// Validate architecture
if (!BINDER_SPACE::Assembly::IsValidArchitecture(pAssemblyName->GetArchitecture()))
{
+ fprintf(stderr, "@@[SR] %s:%d\n");
IF_FAIL_GO(HRESULT_FROM_WIN32(ERROR_BAD_FORMAT));
}