Namespace: go.std.debug.plan9obj
v1.0Contents
Summary
Provides a low-level interface to the debug/plan9obj package.
Package plan9obj implements access to Plan 9 a.out object files.
Index
- *File
- *FileHeader
- *Section
- *SectionHeader
- *Sym
- ErrNoSymbols
- File
- FileHeader
- Magic386
- Magic64
- MagicAMD64
- MagicARM
- NewFile
- Open
- Section
- SectionHeader
- Sym
- arrayOfFile
- arrayOfFileHeader
- arrayOfSection
- arrayOfSectionHeader
- arrayOfSym
Legend
-
Constant
Variable
Function
Macro
Special form
Type
GoVar
Receiver/Method
Constants
Constants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.-
Magic386
Int v1.0 -
Magic64
Int v1.064-bit expanded header
-
MagicAMD64
Int v1.0 -
MagicARM
Int v1.0
Variables
-
ErrNoSymbols
Var v1.0ErrNoSymbols is returned by File.Symbols if there is no such section
in the File.
Functions, Macros, and Special Forms
-
NewFile
Function v1.0(NewFile r)
NewFile creates a new File for accessing a Plan 9 binary in an underlying reader.
The Plan 9 binary is expected to start at position 0 in the ReaderAt.
Go input arguments: (r io.ReaderAt)
Go returns: (*File, error)
Joker input arguments: [^go.std.io/ReaderAt r]
Joker returns: [^*File, ^Error] -
Open
Function v1.0(Open name)
Open opens the named file using os.Open and prepares it for use as a Plan 9 a.out binary.
Go input arguments: (name string)
Go returns: (*File, error)
Joker input arguments: [^String name]
Joker returns: [^*File, ^Error]
Types
-
*File
Concrete Type v1.0A File represents an open Plan 9 a.out file.
-
Close
Receiver for *File v1.0([])
Close closes the File.
If the File was created using NewFile directly instead of Open,
Close has no effect.
-
Section
Receiver for *File v1.0([name])
Section returns a section with the given name, or nil if no such
section exists.
-
Symbols
Receiver for *File v1.0([])
Symbols returns the symbol table for f.
-
*FileHeader
Concrete Type v1.0A FileHeader represents a Plan 9 a.out file header.
-
*Section
Concrete Type v1.0A Section represents a single section in a Plan 9 a.out file.
-
Data
Receiver for *Section v1.0([])
Data reads and returns the contents of the Plan 9 a.out section.
-
Open
Receiver for *Section v1.0([])
Open returns a new ReadSeeker reading the Plan 9 a.out section.
-
*SectionHeader
Concrete Type v1.0A SectionHeader represents a single Plan 9 a.out section header.
This structure doesn't exist on-disk, but eases navigation
through the object file.
-
*Sym
Concrete Type v1.0A Symbol represents an entry in a Plan 9 a.out symbol table section.
-
File
Concrete Type v1.0A File represents an open Plan 9 a.out file.
-
FileHeader
Concrete Type v1.0A FileHeader represents a Plan 9 a.out file header.
-
Section
Concrete Type v1.0A Section represents a single section in a Plan 9 a.out file.
-
SectionHeader
Concrete Type v1.0A SectionHeader represents a single Plan 9 a.out section header.
This structure doesn't exist on-disk, but eases navigation
through the object file.
-
Sym
Concrete Type v1.0A Symbol represents an entry in a Plan 9 a.out symbol table section.
-
arrayOfFile
Concrete Type v1.0A File represents an open Plan 9 a.out file.
-
arrayOfFileHeader
Concrete Type v1.0A FileHeader represents a Plan 9 a.out file header.
-
arrayOfSection
Concrete Type v1.0A Section represents a single section in a Plan 9 a.out file.
-
arrayOfSectionHeader
Concrete Type v1.0A SectionHeader represents a single Plan 9 a.out section header.
This structure doesn't exist on-disk, but eases navigation
through the object file.
-
arrayOfSym
Concrete Type v1.0A Symbol represents an entry in a Plan 9 a.out symbol table section.