[原创]高版本go语言符号还原 | 宜武汇-ag真人国际厅网站

// pcheader holds data used by the pclntab lookups.

type pcheader struct {

    magic          uint32  // 0xfffffff0

    pad1, pad2     uint8   // 0,0

    minlc          uint8   // min instruction size

    ptrsize        uint8   // size of a ptr in bytes

    nfunc          int     // number of functions in the module

    nfiles         uint    // number of entries in the file tab

    textstart      uintptr // base for function entry pc offsets in this module, equal to moduledata.text

    funcnameoffset uintptr // offset to the funcnametab variable from pcheader

    cuoffset       uintptr // offset to the cutab variable from pcheader

    filetaboffset  uintptr // offset to the filetab variable from pcheader

    pctaboffset    uintptr // offset to the pctab variable from pcheader

    pclnoffset     uintptr // offset to the pclntab variable from pcheader

 

 

 

type moduledata struct {

    pcheader     *pcheader

    funcnametab  []byte

    filetab      []byte

    pctab        []byte

    pclntable    []byte

    ftab         []functab

    findfunctab  uintptr

    minpc, maxpc uintptr

 

    text, etext           uintptr

    noptrdata, enoptrdata uintptr

    data, edata           uintptr

    bss, ebss             uintptr

    noptrbss, enoptrbss   uintptr

    end, gcdata, gcbss    uintptr

    types, etypes         uintptr

    rodata                uintptr

    gofunc                uintptr // go.func.*

 

    textsectmap []textsect

    typelinks   []int32 // offsets from types

    itablinks   []*itab

 

    ptab []ptabentry

 

    pluginpath string

    pkghashes  []modulehash

 

    modulename   string

    modulehashes []modulehash

 

    hasmain uint8 // 1 if module contains the main function, 0 otherwise

 

    gcdatamask, gcbssmask bitvector

 

    typemap map[typeoff]*_type // offset to *_rtype in previous module

 

    bad bool // module failed to load and should be ignored

 

    next *moduledata

原文链接:https://bbs.kanxue.com/thread-277492.htm

网络摘文,本文作者:15h,如若转载,请注明出处:https://www.15cov.cn/2023/08/27/原创高版本go语言符号还原/

发表评论

邮箱地址不会被公开。 必填项已用*标注

网站地图