An ObjTool inspects shared libraries and executable files.
| 107 | |
| 108 | // An ObjTool inspects shared libraries and executable files. |
| 109 | type ObjTool interface { |
| 110 | // Open opens the named object file. If the object is a shared |
| 111 | // library, start/limit/offset are the addresses where it is mapped |
| 112 | // into memory in the address space being inspected. If the object |
| 113 | // is a linux kernel, relocationSymbol is the name of the symbol |
| 114 | // corresponding to the start address. |
| 115 | Open(file string, start, limit, offset uint64, relocationSymbol string) (ObjFile, error) |
| 116 | |
| 117 | // Disasm disassembles the named object file, starting at |
| 118 | // the start address and stopping at (before) the end address. |
| 119 | Disasm(file string, start, end uint64, intelSyntax bool) ([]Inst, error) |
| 120 | } |
| 121 | |
| 122 | // An Inst is a single instruction in an assembly listing. |
| 123 | type Inst struct { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…