Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 77 for elf_ (0.05 sec)

  1. src/cmd/link/internal/mips64/asm.go

    		switch r.Size {
    		case 4:
    			out.Write8(uint8(elf.R_MIPS_32))
    		case 8:
    			out.Write8(uint8(elf.R_MIPS_64))
    		default:
    			return false
    		}
    	case objabi.R_ADDRMIPS:
    		out.Write8(uint8(elf.R_MIPS_LO16))
    	case objabi.R_ADDRMIPSU:
    		out.Write8(uint8(elf.R_MIPS_HI16))
    	case objabi.R_ADDRMIPSTLS:
    		out.Write8(uint8(elf.R_MIPS_TLS_TPREL_LO16))
    		if ctxt.Target.IsOpenbsd() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:58:20 UTC 2023
    - 11K bytes
    - Viewed (0)
  2. src/cmd/link/internal/arm/asm.go

    				out.Write32(uint32(elf.R_ARM_CALL) | uint32(elfsym)<<8)
    			} else {
    				out.Write32(uint32(elf.R_ARM_JUMP24) | uint32(elfsym)<<8)
    			}
    		} else {
    			return false
    		}
    	case objabi.R_TLS_LE:
    		out.Write32(uint32(elf.R_ARM_TLS_LE32) | uint32(elfsym)<<8)
    	case objabi.R_TLS_IE:
    		out.Write32(uint32(elf.R_ARM_TLS_IE32) | uint32(elfsym)<<8)
    	case objabi.R_GOTPCREL:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:58:20 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  3. src/cmd/link/internal/amd64/asm.go

    				out.Write64(uint64(elf.R_X86_64_PLT32) | uint64(elfsym)<<32)
    			} else {
    				out.Write64(uint64(elf.R_X86_64_PC32) | uint64(elfsym)<<32)
    			}
    		} else {
    			return false
    		}
    	case objabi.R_GOTPCREL:
    		if siz == 4 {
    			out.Write64(uint64(elf.R_X86_64_GOTPCREL) | uint64(elfsym)<<32)
    		} else {
    			return false
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:58:20 UTC 2023
    - 21K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testshared/shared_test.go

    	}
    }
    
    func hasDynTag(f *elf.File, tag elf.DynTag) bool {
    	ds := f.SectionByType(elf.SHT_DYNAMIC)
    	if ds == nil {
    		return false
    	}
    	d, err := ds.Data()
    	if err != nil {
    		return false
    	}
    	for len(d) > 0 {
    		var t elf.DynTag
    		switch f.Class {
    		case elf.ELFCLASS32:
    			t = elf.DynTag(f.ByteOrder.Uint32(d[0:4]))
    			d = d[8:]
    		case elf.ELFCLASS64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 26 01:54:41 UTC 2023
    - 36.3K bytes
    - Viewed (0)
  5. src/debug/dwarf/entry_test.go

    		{0x10, nil},
    		{0x400611, nil},
    	}
    	testRanges(t, "testdata/line-gcc.elf", want)
    
    	want = []wantRange{
    		{0x401122, [][2]uint64{{0x401122, 0x401166}}},
    		{0x401165, [][2]uint64{{0x401122, 0x401166}}},
    		{0x401166, [][2]uint64{{0x401166, 0x401179}}},
    	}
    	testRanges(t, "testdata/line-gcc-dwarf5.elf", want)
    
    	want = []wantRange{
    		{0x401130, [][2]uint64{{0x401130, 0x40117e}}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:36 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testcarchive/carchive_test.go

    		case ".strtab":
    			want = elf.SHT_STRTAB
    		case ".init_array":
    			want = elf.SHT_INIT_ARRAY
    		case ".fini_array":
    			want = elf.SHT_FINI_ARRAY
    		case ".preinit_array":
    			want = elf.SHT_PREINIT_ARRAY
    		}
    		if want != elf.SHT_NULL && sec.Type != want {
    			t.Errorf("%s: incorrect section type in elf file at %d for section %q: got %v want %v", arname, off, sec.Name, sec.Type, want)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K 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/cgo/internal/testcshared/cshared_test.go

    	createHeadersOnce(t)
    
    	f, err := elf.Open(libgoname)
    	if err != nil {
    		t.Fatalf("elf.Open failed: %v", err)
    	}
    	defer f.Close()
    
    	ds := f.SectionByType(elf.SHT_DYNAMIC)
    	if ds == nil {
    		t.Fatalf("no SHT_DYNAMIC section")
    	}
    	d, err := ds.Data()
    	if err != nil {
    		t.Fatalf("can't read SHT_DYNAMIC contents: %v", err)
    	}
    	for len(d) > 0 {
    		var tag elf.DynTag
    		switch f.Class {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  10. 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)
Back to top