Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Shlib (0.11 sec)

  1. src/cmd/cgo/internal/testcshared/testdata/go2c2go/go/shlib.go

    Austin Clements <******@****.***> 1683216807 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 249 bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/action.go

    // If a1 is nil, shlib should be an absolute path to an existing shared library,
    // and then linkSharedAction reads that library to find out the package list.
    func (b *Builder) linkSharedAction(mode, depMode BuildMode, shlib string, a1 *Action) *Action {
    	fullShlib := shlib
    	shlib = filepath.Base(shlib)
    	a := b.cacheAction("build-shlib "+shlib, nil, func() *Action {
    		if a1 == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/ld.go

    		ctxt.Logf("addlibpath: srcref: %s objref: %s file: %s pkg: %s shlib: %s fingerprint: %x\n", srcref, objref, file, pkg, shlib, fingerprint)
    	}
    
    	l := &sym.Library{}
    	ctxt.LibraryByPkg[pkg] = l
    	ctxt.Library = append(ctxt.Library, l)
    	l.Objref = objref
    	l.Srcref = srcref
    	l.File = file
    	l.Pkg = pkg
    	l.Fingerprint = fingerprint
    	if shlib != "" {
    		if strings.HasSuffix(shlib, ".shlibname") {
    			data, err := os.ReadFile(shlib)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 8K bytes
    - Viewed (0)
  4. src/cmd/link/internal/sym/library.go

    // license that can be found in the LICENSE file.
    
    package sym
    
    import "cmd/internal/goobj"
    
    type Library struct {
    	Objref      string
    	Srcref      string
    	File        string
    	Pkg         string
    	Shlib       string
    	Fingerprint goobj.FingerprintType
    	Autolib     []goobj.ImportedPkg
    	Imports     []*Library
    	Main        bool
    	Units       []*CompilationUnit
    
    	Textp       []LoaderSym // text syms defined in this library
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 11 18:32:23 UTC 2020
    - 651 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testshared/shared_test.go

    	// built here.
    	goCmd(nil, append([]string{"install", "-buildmode=shared"}, minpkgs...)...)
    
    	shlib := goCmd(nil, "list", "-linkshared", "-f={{.Shlib}}", "runtime")
    	if shlib != "" {
    		gorootInstallDir = filepath.Dir(shlib)
    	}
    
    	myContext.InstallSuffix = "_dynlink"
    	depP, err := myContext.Import("./depBase", ".", build.ImportComment)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 26 01:54:41 UTC 2023
    - 36.3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/work/gccgo.go

    	if cfg.Goos == "aix" {
    		rLibPath = "-Wl,-blibpath="
    	} else {
    		rLibPath = "-Wl,-rpath="
    	}
    	for _, shlib := range shlibs {
    		ldflags = append(
    			ldflags,
    			"-L"+filepath.Dir(shlib),
    			rLibPath+filepath.Dir(shlib),
    			"-l"+strings.TrimSuffix(
    				strings.TrimPrefix(filepath.Base(shlib), "lib"),
    				".so"))
    	}
    
    	var realOut string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 02 22:18:34 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/list_linkshared.txt

    env GO111MODULE=on
    
    # golang.org/issue/35759: 'go list -linkshared'
    # panicked if invoked on a test-only package.
    
    [!buildmode:shared] skip
    
    go list -f '{{.ImportPath}}: {{.Target}} {{.Shlib}}' -linkshared .
    stdout '^example.com:  $'
    
    -- go.mod --
    module example.com
    
    go 1.14
    -- x.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 29 17:32:24 UTC 2021
    - 297 bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/lib.go

    	if filepath.IsAbs(shlib) {
    		libpath = shlib
    		shlib = filepath.Base(shlib)
    	} else {
    		libpath = findshlib(ctxt, shlib)
    		if libpath == "" {
    			return
    		}
    	}
    	for _, processedlib := range ctxt.Shlibs {
    		if processedlib.Path == libpath {
    			return
    		}
    	}
    	if ctxt.Debugvlog > 1 {
    		ctxt.Logf("ldshlibsyms: found library with name %s at %s\n", shlib, libpath)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  9. 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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 19 15:59:22 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/decodesym.go

    }
    
    // Find the elf.Section of a given shared library that contains a given address.
    func findShlibSection(ctxt *Link, path string, addr uint64) *elf.Section {
    	for _, shlib := range ctxt.Shlibs {
    		if shlib.Path == path {
    			for _, sect := range shlib.File.Sections[1:] { // skip the NULL section
    				if sect.Addr <= addr && addr < sect.Addr+sect.Size {
    					return sect
    				}
    			}
    		}
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top