Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for elf_ (0.08 sec)

  1. src/cmd/link/internal/ld/elf_test.go

    	defer fi.Close()
    
    	elfFile, err := elf.NewFile(fi)
    	if err != nil {
    		t.Skip("The system may not support ELF, skipped.")
    	}
    	defer elfFile.Close()
    
    	// List of interesting sections. Here "interesting" means progbits/dynamic
    	// and loadable (has an address), nonzero size.
    	secs := []*elf.Section{}
    	for _, s := range elfFile.Sections {
    		if s.Type != elf.SHT_PROGBITS && s.Type != elf.SHT_DYNAMIC {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 13:44:07 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh

    		$2 ~ /^E([ABCD]X|[BIS]P|[SD]I|S|FL)$/ {next}  # 386 registers
    		$2 ~ /^(SIGEV_|SIGSTKSZ|SIGRT(MIN|MAX))/ {next}
    		$2 ~ /^(SCM_SRCRT)$/ {next}
    		$2 ~ /^(MAP_FAILED)$/ {next}
    		$2 ~ /^ELF_.*$/ {next}# <asm/elf.h> contains ELF_ARCH, etc.
    
    		$2 ~ /^EXTATTR_NAMESPACE_NAMES/ ||
    		$2 ~ /^EXTATTR_NAMESPACE_[A-Z]+_STRING/ {next}
    
    		$2 !~ /^ECCAPBITS/ &&
    		$2 !~ /^ETH_/ &&
    		$2 !~ /^EPROC_/ &&
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/ppc64/obj9.go

    // prologue.
    func isNOTOCfunc(name string) bool {
    	switch {
    	case name == "runtime.duffzero":
    		return true
    	case name == "runtime.duffcopy":
    		return true
    	case strings.HasPrefix(name, "runtime.elf_"):
    		return true
    	default:
    		return false
    	}
    }
    
    // Try converting FMOVD/FMOVS to XXSPLTIDP. If it is converted,
    // return true.
    func convertFMOVtoXXSPLTIDP(p *obj.Prog) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  4. src/cmd/link/internal/loadelf/ldelf.go

    			return errorf("elf object but not 386")
    		}
    
    	case sys.PPC64:
    		if mach != elf.EM_PPC64 || class != elf.ELFCLASS64 {
    			return errorf("elf object but not ppc64")
    		}
    
    	case sys.RISCV64:
    		if mach != elf.EM_RISCV || class != elf.ELFCLASS64 {
    			return errorf("elf object but not riscv64")
    		}
    
    	case sys.S390X:
    		if mach != elf.EM_S390 || class != elf.ELFCLASS64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:12:12 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  5. src/cmd/link/internal/riscv64/asm.go

    		//
    		//  https://github.com/riscv-non-isa/riscv-elf-psabi-doc/releases/download/v1.0/riscv-abi.pdf
    		//
    		var hiRel, loRel elf.R_RISCV
    		switch r.Type {
    		case objabi.R_RISCV_CALL, objabi.R_RISCV_PCREL_ITYPE:
    			hiRel, loRel = elf.R_RISCV_PCREL_HI20, elf.R_RISCV_PCREL_LO12_I
    		case objabi.R_RISCV_PCREL_STYPE:
    			hiRel, loRel = elf.R_RISCV_PCREL_HI20, elf.R_RISCV_PCREL_LO12_S
    		case objabi.R_RISCV_TLS_IE:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 01 08:06:08 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/internal/elfexec/elfexec.go

    // section or nil if the segment cannot be found.
    func FindTextProgHeader(f *elf.File) *elf.ProgHeader {
    	for _, s := range f.Sections {
    		if s.Name == ".text" {
    			// Find the LOAD segment containing the .text section.
    			for _, p := range f.Progs {
    				if p.Type == elf.PT_LOAD && p.Flags&elf.PF_X != 0 && s.Addr >= p.Vaddr && s.Addr < p.Vaddr+p.Memsz {
    					return &p.ProgHeader
    				}
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. src/debug/elf/file.go

    resources, or cause panics.
    */
    package elf
    
    import (
    	"bytes"
    	"compress/zlib"
    	"debug/dwarf"
    	"encoding/binary"
    	"errors"
    	"fmt"
    	"internal/saferio"
    	"internal/zstd"
    	"io"
    	"os"
    	"strings"
    	"unsafe"
    )
    
    // TODO: error reporting detail
    
    /*
     * Internal ELF representation
     */
    
    // A FileHeader represents an ELF file header.
    type FileHeader struct {
    	Class      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)
  8. src/debug/buildinfo/buildinfo.go

    func (x *elfExe) DataStart() (uint64, uint64) {
    	for _, s := range x.f.Sections {
    		if s.Name == ".go.buildinfo" {
    			return s.Addr, s.Size
    		}
    	}
    	for _, p := range x.f.Progs {
    		if p.Type == elf.PT_LOAD && p.Flags&(elf.PF_X|elf.PF_W) == elf.PF_W {
    			return p.Vaddr, p.Memsz
    		}
    	}
    	return 0, 0
    }
    
    // peExe is the PE (Windows Portable Executable) implementation of the exe interface.
    type peExe struct {
    	f *pe.File
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/binutils/binutils.go

    		return elfexec.FindTextProgHeader(ef), nil
    	}
    
    	// Fetch all the loadable segments.
    	var phdrs []elf.ProgHeader
    	for i := range ef.Progs {
    		if ef.Progs[i].Type == elf.PT_LOAD {
    			phdrs = append(phdrs, ef.Progs[i].ProgHeader)
    		}
    	}
    	// Some ELF files don't contain any loadable program segments, e.g. .ko
    	// kernel modules. It's not an error to have no header in such cases.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/main.go

    	flag.Var(&ctxt.BuildMode, "buildmode", "set build `mode`")
    	flag.BoolVar(&ctxt.compressDWARF, "compressdwarf", true, "compress DWARF if possible")
    	objabi.Flagfn1("B", "add an ELF NT_GNU_BUILD_ID `note` when using ELF; use \"gobuildid\" to generate it from the Go build ID", addbuildinfo)
    	objabi.Flagfn1("L", "add specified `directory` to library path", func(a string) { Lflag(ctxt, a) })
    	objabi.AddVersionFlag() // -V
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top