Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Phentsize (0.1 sec)

  1. src/debug/elf/file.go

    	}
    	if phnum > 0 && phentsize < wantPhentsize {
    		return nil, &FormatError{0, "invalid ELF phentsize", phentsize}
    	}
    
    	// Read program headers
    	f.Progs = make([]*Prog, phnum)
    	phdata, err := saferio.ReadDataAt(sr, uint64(phnum)*uint64(phentsize), phoff)
    	if err != nil {
    		return nil, err
    	}
    	for i := 0; i < phnum; i++ {
    		off := uintptr(i) * uintptr(phentsize)
    		p := new(Prog)
    		switch f.Class {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:49:58 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  2. src/cmd/link/internal/loadelf/ldelf.go

    		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)
    		elfobj.shnum = uint32(hdr.Shnum)
    		elfobj.shstrndx = uint32(hdr.Shstrndx)
    	} else {
    		elfobj.type_ = uint32(hdr.Type)
    		elfobj.machine = uint32(hdr.Machine)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:12:12 UTC 2024
    - 33.9K bytes
    - Viewed (0)
Back to top