Check for .NET (win32/net) files.
committer: mfx <mfx> 1090256077 +0000
This commit is contained in:
+6
-4
@@ -75,6 +75,7 @@ static unsigned my_strlen(const unsigned char *s)
|
|||||||
{
|
{
|
||||||
size_t l = strlen((const char*)s); assert((unsigned) l == l); return (unsigned) l;
|
size_t l = strlen((const char*)s); assert((unsigned) l == l); return (unsigned) l;
|
||||||
}
|
}
|
||||||
|
#undef strlen
|
||||||
#define strlen my_strlen
|
#define strlen my_strlen
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -1624,17 +1625,18 @@ void PackW32Pe::pack(OutputFile *fo)
|
|||||||
|| ih.ddirsentries != 16
|
|| ih.ddirsentries != 16
|
||||||
|| IDSIZE(PEDIR_EXCEPTION) // is this used on i386?
|
|| IDSIZE(PEDIR_EXCEPTION) // is this used on i386?
|
||||||
// || IDSIZE(PEDIR_COPYRIGHT)
|
// || IDSIZE(PEDIR_COPYRIGHT)
|
||||||
|| IDSIZE(PEDIR_COMRT)
|
|
||||||
))
|
))
|
||||||
throwCantPack("unexpected value in PE header (try --force)");
|
throwCantPack("unexpected value in PE header (try --force)");
|
||||||
|
|
||||||
|
if (IDSIZE(PEDIR_SEC))
|
||||||
|
throwCantPack("compressing certificate info is not supported");
|
||||||
|
if (IDSIZE(PEDIR_COMRT))
|
||||||
|
throwCantPack(".NET files (win32/net) are not yet supported");
|
||||||
|
|
||||||
// Structured Exception Handling
|
// Structured Exception Handling
|
||||||
if (!opt->win32_pe.strip_loadconf && IDSIZE(PEDIR_LOADCONF))
|
if (!opt->win32_pe.strip_loadconf && IDSIZE(PEDIR_LOADCONF))
|
||||||
throwCantPack("Structured Exception Handling present (try --strip-loadconf)");
|
throwCantPack("Structured Exception Handling present (try --strip-loadconf)");
|
||||||
|
|
||||||
if (IDSIZE(PEDIR_SEC))
|
|
||||||
throwCantPack("compressing certificate info is not supported");
|
|
||||||
|
|
||||||
if (isdll)
|
if (isdll)
|
||||||
opt->win32_pe.strip_relocs = false;
|
opt->win32_pe.strip_relocs = false;
|
||||||
else if (opt->win32_pe.strip_relocs < 0)
|
else if (opt->win32_pe.strip_relocs < 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user