Home | History | Annotate | Download | only in objfile

Lines Matching defs:File

3 // license that can be found in the LICENSE file.
26 // A File is an opened executable file.
27 type File struct {
28 r *os.File
37 // A Sym is a symbol defined in an executable file.
66 // Open opens the named file.
67 // The caller must call f.Close when the file is no longer needed.
68 func Open(name string) (*File, error) {
78 return &File{r, []*Entry{&Entry{raw: raw}}}, nil
82 return nil, fmt.Errorf("open %s: unrecognized object file", name)
85 func (f *File) Close() error {
89 func (f *File) Entries() []*Entry {
93 func (f *File) Symbols() ([]Sym, error) {
97 func (f *File) PCLineTable() (Liner, error) {
101 func (f *File) Text() (uint64, []byte, error) {
105 func (f *File) GOARCH() string {
109 func (f *File) LoadAddress() (uint64, error) {
113 func (f *File) DWARF() (*dwarf.Data, error) {
117 func (f *File) Disasm() (*Disasm, error) {
141 // If the raw file implements Liner directly, use that.
162 // LoadAddress returns the expected load address of the file.
169 // DWARF returns DWARF debug data for the file, if any.