Ignore:
Timestamp:
Aug 18, 1999, 2:24:53 PM (26 years ago)
Author:
sandervl
Message:

PE loader changes (exes without fixups + TLS support)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/winimage.h

    r463 r544  
    1 /* $Id: winimage.h,v 1.4 1999-08-09 22:46:46 phaller Exp $ */
     1/* $Id: winimage.h,v 1.5 1999-08-18 12:24:53 sandervl Exp $ */
    22
    33/*
     
    2626#define MAGIC_WINIMAGE          0x11223344
    2727#endif
     28
     29
     30//SvL: Amount of memory the peldr dll reserves for win32 exes without fixups
     31//(most of them need to be loaded at 4 MB; except MS Office apps of course)
     32#define PELDR_RESERVEDMEMSIZE   16*1024*1024
     33
    2834
    2935#pragma pack(1)
     
    4551#define SECTION_EXPORT          128
    4652#define SECTION_DEBUG           256
     53#define SECTION_TLS             512
    4754
    4855#define PAGE_SIZE               4096
     
    107114        void OS2ImageInit(HINSTANCE hinstance, int NameTableId, int Win32TableId);
    108115
    109 virtual BOOL  init();
     116        //reservedMem is address of memory reserved in peldr.dll (allocated before
     117        //any dlls are loaded, so that exes without fixups can be loaded at a low
     118        //address)
     119virtual BOOL  init(ULONG reservedMem);
    110120
    111121        ULONG getError()              { return errorState; };
     
    148158
    149159        void  addSection(ULONG type, char *rawdata, ULONG rawsize, ULONG virtaddress, ULONG virtsize);
    150         BOOL  allocSections();
    151         BOOL  allocFixedMem();
     160        BOOL  allocSections(ULONG reservedMem);
     161        BOOL  allocFixedMem(ULONG reservedMem);
     162     Section *findSection(ULONG type);
     163     Section *findSectionByAddr(ULONG addr);
    152164
    153165        BOOL  storeSections();
Note: See TracChangeset for help on using the changeset viewer.