Home | History | Annotate | Download | only in elf

Lines Matching defs:File

3 // license that can be found in the LICENSE file.
37 // A FileHeader represents an ELF file header.
50 // A File represents an open ELF file.
51 type File struct {
73 // FileSize is the size of this section in the file in bytes.
80 // A Section represents a single section in an ELF file.
102 // Even if the section is stored compressed in the ELF file,
112 func (f *File) stringTable(link uint32) ([]byte, error) {
120 // Even if the section is stored compressed in the ELF file,
195 // Open opens the named file using os.Open and prepares it for use as an ELF binary.
196 func Open(name string) (*File, error) {
210 // Close closes the File.
211 // If the File was created using NewFile directly instead of Open,
213 func (f *File) Close() error {
224 func (f *File) SectionByType(typ SectionType) *Section {
233 // NewFile creates a new File for accessing an ELF binary in an underlying reader.
235 func NewFile(r io.ReaderAt) (*File, error) {
246 f := new(File)
274 // Read ELF file header
465 func (f *File) getSymbols(typ SectionType) ([]Symbol, []byte, error) {
477 // ErrNoSymbols is returned by File.Symbols and File.DynamicSymbols
478 // if there is no such section in the File.
481 func (f *File) getSymbols32(typ SectionType) ([]Symbol, []byte, error) {
524 func (f *File) getSymbols64(typ SectionType) ([]Symbol, []byte, error) {
583 func (f *File) Section(name string) *Section {
594 func (f *File) applyRelocations(dst []byte, rels []byte) error {
621 func (f *File) applyRelocationsAMD64(dst []byte, rels []byte) error {
650 // object file, and we only look at section symbols,
670 func (f *File) applyRelocations386(dst []byte, rels []byte) error {
707 func (f *File) applyRelocationsARM(dst []byte, rels []byte) error {
745 func (f *File) applyRelocationsARM64(dst []byte, rels []byte) error {
774 // object file, and we only look at section symbols,
794 func (f *File) applyRelocationsPPC(dst []byte, rels []byte) error {
834 func (f *File) applyRelocationsPPC64(dst []byte, rels []byte) error {
879 func (f *File) applyRelocationsMIPS(dst []byte, rels []byte) error {
917 func (f *File) applyRelocationsMIPS64(dst []byte, rels []byte) error {
969 func (f *File) applyRelocationss390x(dst []byte, rels []byte) error {
1018 func (f *File) applyRelocationsSPARC64(dst []byte, rels []byte) error {
1063 func (f *File) DWARF() (*dwarf.Data, error) {
1160 func (f *File) Symbols() ([]Symbol, error) {
1171 func (f *File) DynamicSymbols() ([]Symbol, error) {
1186 func (f *File) ImportedSymbols() ([]ImportedSymbol, error) {
1203 File string
1209 func (f *File) gnuVersionInit(str []byte) {
1231 file, _ := getString(str, int(fileoff))
1252 need[ndx] = verneed{file, name}
1278 func (f *File) gnuVersion(i int, sym *ImportedSymbol) {
1289 sym.Library = n.File
1296 func (f *File) ImportedLibraries() ([]string, error) {
1300 // DynString returns the strings listed for the given tag in the file's dynamic
1305 func (f *File) DynString(tag DynTag) ([]string, error) {