runtime_loader: Detect and trigger on PE binaries
* Previously PE binaries would trigger the "incorrectly executable" dialog. Now we get a special message for B_LEGACY_EXECUTABLE and B_UNKNOWN_EXECUTABLE * Legacy at the moment is a R3 x86 PE binary. This could be extended to gcc2 binaries someday far, far, down the road though * The check for legacy is based on a PE flag I see set on every R3 binary (that isn't set on dos ones) * Unknown is something we know *is* an executable, but can't do anything with (such as an MSDOS or Windows application) * No performance drops as we do the PE scan last * Tested on x86 and x86_gcc2
This commit is contained in:
@@ -71,6 +71,8 @@
|
||||
#define B_NOT_AN_EXECUTABLE (B_OS_ERROR_BASE + 0x302)
|
||||
#define B_MISSING_LIBRARY (B_OS_ERROR_BASE + 0x303)
|
||||
#define B_MISSING_SYMBOL (B_OS_ERROR_BASE + 0x304)
|
||||
#define B_UNKNOWN_EXECUTABLE (B_OS_ERROR_BASE + 0x305)
|
||||
#define B_LEGACY_EXECUTABLE (B_OS_ERROR_BASE + 0x306)
|
||||
|
||||
#define B_DEBUGGER_ALREADY_INSTALLED (B_OS_ERROR_BASE + 0x400)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user