An ObjTool inspects shared libraries and executable files.
| 136 | |
| 137 | // An ObjTool inspects shared libraries and executable files. |
| 138 | type ObjTool interface { |
| 139 | // Open opens the named object file. If the object is a shared |
| 140 | // library, start/limit/offset are the addresses where it is mapped |
| 141 | // into memory in the address space being inspected. If the object |
| 142 | // is a linux kernel, relocationSymbol is the name of the symbol |
| 143 | // corresponding to the start address. |
| 144 | Open(file string, start, limit, offset uint64, relocationSymbol string) (ObjFile, error) |
| 145 | |
| 146 | // Disasm disassembles the named object file, starting at |
| 147 | // the start address and stopping at (before) the end address. |
| 148 | Disasm(file string, start, end uint64, intelSyntax bool) ([]Inst, error) |
| 149 | } |
| 150 | |
| 151 | // An Inst is a single instruction in an assembly listing. |
| 152 | type Inst struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…