Home | History | Annotate | Download | only in macho

Lines Matching defs:File

3 // license that can be found in the LICENSE file.
19 // A File represents an open Mach-O file.
20 type File struct {
181 // not have the correct format for an object file.
197 // Open opens the named file using os.Open and prepares it for use as a Mach-O binary.
198 func Open(name string) (*File, error) {
212 // Close closes the File.
213 // If the File was created using NewFile directly instead of Open,
215 func (f *File) Close() error {
224 // NewFile creates a new File for accessing a Mach-O binary in an underlying reader.
226 func NewFile(r io.ReaderAt) (*File, error) {
227 f := new(File)
249 // Read entire file header.
449 func (f *File) parseSymtab(symdat, strtab, cmddat []byte, hdr *SymtabCmd, offset int64) (*Symtab, error) {
491 func (f *File) pushSection(sh *Section, r io.ReaderAt) error {
555 func (f *File) Segment(name string) *Segment {
566 func (f *File) Section(name string) *Section {
575 // DWARF returns the DWARF debug information for the Mach-O file.
576 func (f *File) DWARF() (*dwarf.Data, error) {
602 func (f *File) ImportedSymbols() ([]string, error) {
619 func (f *File) ImportedLibraries() ([]string, error) {