Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 184 for elf_ (0.2 sec)

  1. src/cmd/cgo/internal/testerrors/testdata/err5.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    //line /tmp/_cgo_.go:1
    //go:cgo_dynamic_linker "/elf/interp"
    // ERROR MESSAGE: only allowed in cgo-generated code
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 20:40:57 UTC 2023
    - 304 bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/cmd/link/internal/ld/link.go

    // THE SOFTWARE.
    
    package ld
    
    import (
    	"bufio"
    	"cmd/internal/objabi"
    	"cmd/link/internal/loader"
    	"cmd/link/internal/sym"
    	"debug/elf"
    	"fmt"
    )
    
    type Shlib struct {
    	Path string
    	Hash []byte
    	Deps []string
    	File *elf.File
    }
    
    // Link holds the context for writing object code from a compiler
    // or for reading that input into the linker.
    type Link struct {
    	Target
    	ErrorReporter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 19 15:59:22 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  5. src/debug/dwarf/open.go

    // Rather than calling this function directly, clients should typically use
    // the DWARF method of the File type of the appropriate package [debug/elf],
    // [debug/macho], or [debug/pe].
    //
    // The []byte arguments are the data from the corresponding debug section
    // in the object file; for example, for an ELF object, abbrev is the contents of
    // the ".debug_abbrev" section.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. 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)
  7. src/debug/dwarf/line_test.go

    		{Address: 0x40101d, EndSequence: true},
    	}
    	files := [][]*LineFile{{file}}
    
    	testLineTable(t, want, files, elfData(t, "testdata/rnglistx.elf"))
    }
    
    func TestLineSeek(t *testing.T) {
    	d := elfData(t, "testdata/line-gcc.elf")
    
    	// Get the line table for the first CU.
    	cu, err := d.Reader().Next()
    	if err != nil {
    		t.Fatal("d.Reader().Next:", err)
    	}
    	lr, err := d.LineReader(cu)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:36 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  8. src/go/internal/gccgoimporter/importer.go

    	goimporterMagic = "\n$$ "
    	archiveMagic    = "!<ar"
    	aixbigafMagic   = "<big"
    )
    
    // Opens the export data file at the given path. If this is an ELF file,
    // searches for and opens the .go_export section. If this is an archive,
    // reads the export data from the first member, which is assumed to be an ELF file.
    // This is intended to replicate the logic in gofrontend.
    func openExportFile(fpath string) (reader io.ReadSeeker, closer io.Closer, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 6.8K bytes
    - Viewed (0)
  9. src/debug/dwarf/testdata/typedef.c

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    /*
    Linux ELF:
    gcc -gdwarf-2 -m64 -c typedef.c && gcc -gdwarf-2 -m64 -o typedef.elf typedef.o
    
    OS X Mach-O:
    gcc -gdwarf-2 -m64 -c typedef.c -o typedef.macho
    gcc -gdwarf-4 -m64 -c typedef.c -o typedef.macho4
    */
    #include <complex.h>
    
    typedef volatile int* t_ptr_volatile_int;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 02 19:56:24 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  10. src/cmd/link/internal/amd64/obj.go

    		PEreloc1:         pereloc1,
    		TLSIEtoLE:        tlsIEtoLE,
    
    		ELF: ld.ELFArch{
    			Linuxdynld:     "/lib64/ld-linux-x86-64.so.2",
    			LinuxdynldMusl: "/lib/ld-musl-x86_64.so.1",
    			Freebsddynld:   "/libexec/ld-elf.so.1",
    			Openbsddynld:   "/usr/libexec/ld.so",
    			Netbsddynld:    "/libexec/ld.elf_so",
    			Dragonflydynld: "/usr/libexec/ld-elf.so.2",
    			Solarisdynld:   "/lib/amd64/ld.so.1",
    
    			Reloc1:    elfreloc1,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 19:32:19 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top