arm/pe: use -march=armv4t instead of v5
committer: ml1050 <ml1050> 1143462067 +0000
This commit is contained in:
@@ -38,7 +38,14 @@ void *GetProcAddressA(const void *, const void *);
|
||||
|
||||
static void *get_le32(const unsigned char *p)
|
||||
{
|
||||
return (void *) (p[0] + p[1] * 0x100 + p[2] * 0x10000 + p[3] * 0x1000000);
|
||||
//return (void *) (p[0] + p[1] * 0x100 + p[2] * 0x10000 + p[3] * 0x1000000);
|
||||
|
||||
// the code below is 4 bytes shorter than the above when compiled
|
||||
unsigned ret;
|
||||
int ic;
|
||||
for (ic = 3; ic >= 0; ic--)
|
||||
ret = ret * 0x100 + p[ic];
|
||||
return (void *) ret;
|
||||
}
|
||||
|
||||
static void handle_imports(const unsigned char *imp, unsigned name_offset,
|
||||
@@ -80,7 +87,7 @@ static void handle_imports(const unsigned char *imp, unsigned name_offset,
|
||||
*iat++ = (unsigned) GetProcAddressA(dll, (void *) ord);
|
||||
break;
|
||||
default:
|
||||
*(int*) 1 = 0;
|
||||
// *(int*) 1 = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -99,7 +106,6 @@ void CHWrap(int);
|
||||
CHwrap(h); \
|
||||
} while (0)
|
||||
|
||||
|
||||
void upx_main(const unsigned *info)
|
||||
{
|
||||
int dlen = 0;
|
||||
|
||||
Reference in New Issue
Block a user