系统相关
首页 > 系统相关> > WindowsPE TLS表

WindowsPE TLS表

作者:互联网

typedef struct _IMAGE_TLS_DIRECTORY32 {
    DWORD   StartAddressOfRawData;
    DWORD   EndAddressOfRawData;
    DWORD   AddressOfIndex;             // PDWORD
    DWORD   AddressOfCallBacks;         // PIMAGE_TLS_CALLBACK *
    DWORD   SizeOfZeroFill;
    union {
        DWORD Characteristics;
        struct {
            DWORD Reserved0 : 20;
            DWORD Alignment : 4;
            DWORD Reserved1 : 8;
        } DUMMYSTRUCTNAME;
    } DUMMYUNIONNAME;

} IMAGE_TLS_DIRECTORY32;
typedef IMAGE_TLS_DIRECTORY32 * PIMAGE_TLS_DIRECTORY32;

 

 

这里说的tls表其实是静态线程局部存储

 

 

 

 

 

 

 

 

 StartAddressOfRawData-EndAddressOfRawData+当前文件块 就是实际的va地址

标签:TLS,IMAGE,PIMAGE,StartAddressOfRawData,DIRECTORY32,DWORD,WindowsPE
来源: https://www.cnblogs.com/feizianquan/p/15086835.html