- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for Shoff (0.04 sec)
-
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/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/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/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/debug/elf/file_test.go
{ buf.Grow(0x55AF1C) // 3003468 + 40 * 65298 h := Header32{ Ident: [16]byte{0x7F, 'E', 'L', 'F', 0x01, 0x01, 0x01}, Type: 1, Machine: 3, Version: 1, Shoff: 0x2DD44C, Ehsize: 0x34, Shentsize: 0x28, Shnum: 0, Shstrndx: 0xFFFF, } binary.Write(&buf, binary.LittleEndian, h) // Zero out sections [1]~[65294].
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 60.1K bytes - Viewed (0) -
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/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)