- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for openELF (0.12 sec)
-
src/cmd/cgo/internal/testplugin/testdata/checkdwarf/main.go
"fmt" "os" "strings" ) func usage() { fmt.Fprintf(os.Stderr, "checkdwarf executable-or-library DIE-suffix\n") } type dwarfer interface { DWARF() (*dwarf.Data, error) } func openElf(path string) dwarfer { exe, err := elf.Open(path) if err != nil { return nil } return exe } func openMacho(path string) dwarfer { exe, err := macho.Open(path) if err != nil { return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.8K bytes - Viewed (0) -
src/cmd/internal/objfile/objfile.go
// from the start of the symbol containing the relocation. String(insnOffset uint64) string } var openers = []func(io.ReaderAt) (rawFile, error){ openElf, openMacho, openPE, openPlan9, openXcoff, } // Open opens the named file. // The caller must call f.Close when the file is no longer needed. func Open(name string) (*File, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 24 16:01:55 UTC 2021 - 4.2K bytes - Viewed (0) -
src/cmd/internal/objfile/elf.go
package objfile import ( "debug/dwarf" "debug/elf" "encoding/binary" "fmt" "io" ) type elfFile struct { elf *elf.File } func openElf(r io.ReaderAt) (rawFile, error) { f, err := elf.NewFile(r) if err != nil { return nil, err } return &elfFile{f}, nil } func (f *elfFile) symbols() ([]Sym, error) { elfSyms, err := f.elf.Symbols()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 20:44:50 UTC 2023 - 3.9K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/binutils/binutils.go
return nil, fmt.Errorf("error reading magic number from %s: %v", name, err) } elfMagic := string(header[:]) // Match against supported file types. if elfMagic == elf.ELFMAG { f, err := b.openELF(name, start, limit, offset, relocationSymbol) if err != nil { return nil, fmt.Errorf("error reading ELF file %s: %v", name, err) } return f, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 22.3K bytes - Viewed (0)