mirror of
https://github.com/mandiant/GoReSym
synced 2026-06-08 15:40:15 +00:00
52 lines
894 B
Plaintext
52 lines
894 B
Plaintext
struct moduledata
|
|
{
|
|
GoSlice pclntable;
|
|
GoSlice ftab;
|
|
GoSlice filetab;
|
|
void *findfunctab;
|
|
void *minpc;
|
|
void *maxpc;
|
|
void *text;
|
|
void *etext;
|
|
void *noptrdata;
|
|
void *enoptrdata;
|
|
void *data;
|
|
void *edata;
|
|
void *bss;
|
|
void *ebss;
|
|
void *noptrbss;
|
|
void *enoptrbss;
|
|
void *end;
|
|
void *gcdata;
|
|
void *gcbss;
|
|
|
|
GoSlice typelinks;
|
|
|
|
GoString modulename;
|
|
GoSlice modulehashes;
|
|
|
|
GoBitVector gcdatamask;
|
|
GoBitVector gcbssmask;
|
|
|
|
moduledata *next;
|
|
};
|
|
|
|
// https://github.com/golang/go/blob/master/src/reflect/type.go
|
|
typedef uint8_t tflag;
|
|
typedef int32_t nameOff;
|
|
typedef int32_t typeOff;
|
|
|
|
struct rtype {
|
|
size_t size;
|
|
size_t ptrdata;
|
|
uint32_t hash;
|
|
uint8_t unused;
|
|
uint8_t align;
|
|
uint8_t fieldAlign;
|
|
uint8_t kind;
|
|
void* alg; // ptr to struct holding hash and equal functions
|
|
void* gcdata;
|
|
void* str;
|
|
void* UncommonType;
|
|
void* ptrToThis;
|
|
} |