- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for phoff (0.56 sec)
-
src/cmd/internal/buildid/buildid_test.go
if err := binary.Read(bytes.NewReader(data), order, &hdr); err != nil { t.Error(err) continue } phoff := hdr.Phoff phnum := int(hdr.Phnum) phsize := uint64(hdr.Phentsize) for i := 0; i < phnum; i++ { var phdr elf.Prog64 if err := binary.Read(bytes.NewReader(data[phoff:]), order, &phdr); err != nil { t.Error(err) continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:28 UTC 2024 - 6.6K bytes - Viewed (0) -
src/debug/elf/file.go
shstrndx = int(bo.Uint16(data[unsafe.Offsetof(hdr.Shstrndx):])) } if shoff < 0 { return nil, &FormatError{0, "invalid shoff", shoff} } if phoff < 0 { return nil, &FormatError{0, "invalid phoff", phoff} } if shoff == 0 && shnum != 0 { return nil, &FormatError{0, "invalid ELF shnum for shoff=0", shnum} } if shnum > 0 && shstrndx >= shnum {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 23 16:49:58 UTC 2024 - 43.1K bytes - Viewed (0) -
src/cmd/link/internal/loadelf/ldelf.go
binary.Read(bytes.NewReader(hdrbuf[:]), e, hdr) elfobj.type_ = uint32(hdr.Type) elfobj.machine = uint32(hdr.Machine) elfobj.version = hdr.Version elfobj.entry = hdr.Entry elfobj.phoff = hdr.Phoff elfobj.shoff = hdr.Shoff elfobj.flags = hdr.Flags elfobj.ehsize = uint32(hdr.Ehsize) elfobj.phentsize = uint32(hdr.Phentsize) elfobj.phnum = uint32(hdr.Phnum) elfobj.shentsize = uint32(hdr.Shentsize)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:12:12 UTC 2024 - 33.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/elf.go
} if ctxt.Arch.Family == sys.RISCV64 { ehdr.Flags = 0x4 /* RISCV Float ABI Double */ } elf64 = true ehdr.Phoff = ELF64HDRSIZE /* Must be ELF64HDRSIZE: first PHdr must follow ELF header */ ehdr.Shoff = ELF64HDRSIZE /* Will move as we add PHeaders */ ehdr.Ehsize = ELF64HDRSIZE /* Must be ELF64HDRSIZE */ ehdr.Phentsize = ELF64PHDRSIZE /* Must be ELF64PHDRSIZE */
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 13:29:54 UTC 2024 - 63.6K bytes - Viewed (0) -
src/debug/elf/elf.go
Machine uint16 /* Machine architecture. */ Version uint32 /* ELF format version. */ Entry uint32 /* Entry point. */ Phoff uint32 /* Program header file offset. */ Shoff uint32 /* Section header file offset. */ Flags uint32 /* Architecture-specific flags. */ Ehsize uint16 /* Size of ELF header in bytes. */
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 00:01:16 UTC 2024 - 134.6K bytes - Viewed (0) -
src/runtime/pprof/elf.go
} var shnum int var shoff, shentsize int64 switch buf[4] { default: return "", errBadELF case 1: // 32-bit file header shoff = int64(byteOrder.Uint32(buf[32:])) shentsize = int64(byteOrder.Uint16(buf[46:])) if shentsize != 40 { return "", errBadELF } shnum = int(byteOrder.Uint16(buf[48:])) case 2: // 64-bit file header shoff = int64(byteOrder.Uint64(buf[40:]))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 08 01:09:18 UTC 2017 - 2.8K bytes - Viewed (0) -
src/internal/zstd/literals.go
} huffmanTableBits, hoff, err := r.readHuff(data, off, r.huffmanTable) if err != nil { return 0, nil, err } r.huffmanTableBits = huffmanTableBits if totalStreamsSize < hoff-off { return 0, nil, r.makeError(off, "Huffman table too big") } totalStreamsSize -= hoff - off off = hoff } else { // Treeless_Literals_Block
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 14:30:10 UTC 2023 - 8.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Header32.Ident", Field, 0}, {"Header32.Machine", Field, 0}, {"Header32.Phentsize", Field, 0}, {"Header32.Phnum", Field, 0}, {"Header32.Phoff", Field, 0}, {"Header32.Shentsize", Field, 0}, {"Header32.Shnum", Field, 0}, {"Header32.Shoff", Field, 0}, {"Header32.Shstrndx", Field, 0}, {"Header32.Type", Field, 0}, {"Header32.Version", Field, 0}, {"Header64", Type, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
src/cmd/internal/buildid/note.go
// at least 4 kB out, in data. func readELF(name string, f *os.File, data []byte) (buildid string, err error) { // Assume the note content is in the data, already read. // Rewrite the ELF header to set shoff and shnum to 0, so that we can pass // the data to elf.NewFile and it will decode the Prog list but not // try to read the section headers and the string table from disk.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 20:40:42 UTC 2023 - 6K bytes - Viewed (0) -
src/cmd/link/internal/ld/pcln.go
textStart := ldr.SymValue(ldr.Lookup("runtime.text", 0)) pcOff := func(s loader.Sym) uint32 { off := ldr.SymValue(s) - textStart if off < 0 { panic(fmt.Sprintf("expected func %s(%x) to be placed at or after textStart (%x)", ldr.SymName(s), ldr.SymValue(s), textStart)) } return uint32(off) } for i, s := range funcs { sb.SetUint32(ctxt.Arch, int64(i*2*4), pcOff(s))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 29.6K bytes - Viewed (0)