arm/pe: use the new linker friendly stubs

two linkers: one for arm mode, one for thumb mode
the import address table is moved to the stubs area of compressed files
changed the alignment of some header fields
the command line option "--8086" can be used to force thumb mode on

committer: ml1050 <ml1050> 1146647520 +0000
This commit is contained in:
László Molnár
2006-05-03 09:12:00 +00:00
parent 1e66096ea7
commit 5456cfc304
2 changed files with 122 additions and 110 deletions
+5 -1
View File
@@ -72,7 +72,7 @@ protected:
unsigned pe_offset;
unsigned processImports();
void processImports(unsigned);
void processImports(unsigned, unsigned);
void rebuildImports(upx_byte *&);
upx_byte *oimport;
unsigned soimport;
@@ -120,6 +120,10 @@ protected:
bool use_thumb_stub;
void createLinker(const void *pdata, int plen, int pinfo);
int rpatch_le32(void *b, int blen, const void *old, unsigned new_,
PackArmPe_Reloc &, unsigned);
struct pe_header_t
{
// 0x0