- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for loadAddress (0.26 sec)
-
src/cmd/internal/objfile/objfile.go
return e.raw.text() } func (e *Entry) GOARCH() string { return e.raw.goarch() } // LoadAddress returns the expected load address of the file. // This differs from the actual load address for a position-independent // executable. func (e *Entry) LoadAddress() (uint64, error) { return e.raw.loadAddress() } // DWARF returns DWARF debug data for the file, if any.
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/plan9obj.go
sym.Size = int64(addrs[i] - s.Value) } syms = append(syms, sym) } return syms, nil } func (f *plan9File) pcln() (textStart uint64, symtab, pclntab []byte, err error) { textStart = f.plan9.LoadAddress + f.plan9.HdrSize if pclntab, err = loadPlan9Table(f.plan9, "runtime.pclntab", "runtime.epclntab"); err != nil { // We didn't find the symbols, so look for the names used in 1.3 and earlier.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 21 01:01:44 UTC 2017 - 3.5K bytes - Viewed (0) -
src/debug/plan9obj/file.go
Magic: ph.Magic, Bss: ph.Bss, Entry: uint64(ph.Entry), PtrSize: 4, LoadAddress: 0x1000, HdrSize: 4 * 8, }} if ph.Magic&Magic64 != 0 { if err := binary.Read(sr, binary.BigEndian, &f.Entry); err != nil { return nil, err } f.PtrSize = 8 f.LoadAddress = 0x200000 f.HdrSize += 8 } var sects = []struct { name string size uint32 }{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 7.2K bytes - Viewed (0) -
src/cmd/internal/objfile/macho.go
func (x uint64s) Len() int { return len(x) } func (x uint64s) Swap(i, j int) { x[i], x[j] = x[j], x[i] } func (x uint64s) Less(i, j int) bool { return x[i] < x[j] } func (f *machoFile) loadAddress() (uint64, error) { if seg := f.macho.Segment("__TEXT"); seg != nil { return seg.Addr, nil } return 0, fmt.Errorf("unknown load address") } func (f *machoFile) dwarf() (*dwarf.Data, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 03 16:07:59 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/internal/objfile/elf.go
case elf.EM_PPC64: if f.elf.ByteOrder == binary.LittleEndian { return "ppc64le" } return "ppc64" case elf.EM_S390: return "s390x" } return "" } func (f *elfFile) loadAddress() (uint64, error) { for _, p := range f.elf.Progs { if p.Type == elf.PT_LOAD && p.Flags&elf.PF_X != 0 { // The memory mapping that contains the segment // starts at an aligned address. Apparently this
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/internal/objfile/xcoff.go
func (f *xcoffFile) goarch() string { switch f.xcoff.TargetMachine { case xcoff.U802TOCMAGIC: return "ppc" case xcoff.U64_TOCMAGIC: return "ppc64" } return "" } func (f *xcoffFile) loadAddress() (uint64, error) { return 0, fmt.Errorf("unknown load address") } func (f *xcoffFile) dwarf() (*dwarf.Data, error) { return f.xcoff.DWARF()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 11 18:19:08 UTC 2021 - 3.9K bytes - Viewed (0) -
src/cmd/internal/objfile/pe.go
return "amd64" case pe.IMAGE_FILE_MACHINE_ARMNT: return "arm" case pe.IMAGE_FILE_MACHINE_ARM64: return "arm64" default: return "" } } func (f *peFile) loadAddress() (uint64, error) { return f.imageBase() } func (f *peFile) imageBase() (uint64, error) { switch oh := f.pe.OptionalHeader.(type) { case *pe.OptionalHeader32: return uint64(oh.ImageBase), nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 20 00:56:30 UTC 2022 - 4.9K bytes - Viewed (0) -
src/cmd/internal/objfile/goobj.go
text = make([]byte, f.goobj.Size) _, err = f.f.ReadAt(text, int64(f.goobj.Offset)) return } func (f *goobjFile) goarch() string { return f.goobj.Arch } func (f *goobjFile) loadAddress() (uint64, error) { return 0, fmt.Errorf("unknown load address") } func (f *goobjFile) dwarf() (*dwarf.Data, error) { return nil, errors.New("no DWARF data in go object file")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 15:39:57 UTC 2023 - 7.8K bytes - Viewed (0) -
src/cmd/pprof/pprof.go
of, err := objfile.Open(name) if err != nil { return nil, err } f := &file{ name: name, file: of, } if start != 0 { if load, err := of.LoadAddress(); err == nil { f.offset = start - load } } return f, nil } func (*objTool) Demangle(names []string) (map[string]string, error) { // No C++, nothing to demangle.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 9.5K bytes - Viewed (0)