Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 312 for linking (3.32 sec)

  1. src/cmd/cgo/internal/testnocgo/nocgo.go

    // misc/cgo to take advantage of the testing framework support for
    // when -static is expected to work.
    
    package nocgo
    
    func NoCgo() int {
    	c := make(chan int)
    
    	// The test is run with external linking, which means that
    	// goroutines will be created via the runtime/cgo package.
    	// Make sure that works.
    	go func() {
    		c <- 42
    	}()
    
    	return <-c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 574 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/issue4029.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !windows && !static && !(darwin && internal)
    
    // Excluded in darwin internal linking PIE (which is the default) mode,
    // as dynamic export is not supported.
    
    package cgotest
    
    /*
    #include <stdint.h>
    #include <dlfcn.h>
    #cgo linux LDFLAGS: -ldl
    
    extern uintptr_t dlopen4029(char*, int);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 15:41:19 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/PlatformToolProvider.java

        String getObjectFileExtension();
    
        String getExecutableName(String executablePath);
    
        String getSharedLibraryName(String libraryPath);
    
        /**
         * Does this tool chain produce an import library when linking a shared library?
         */
        boolean producesImportLibrary();
    
        /**
         * Whether or not this tool chain requires a debuggable binary to be stripped or whether the binary is stripped by default.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/NativeLanguageTools.java

     * limitations under the License.
     */
    
    package org.gradle.nativeplatform.toolchain.internal;
    
    import java.io.File;
    
    /**
     * Tools for compiling and linking native languages.
     */
    public interface NativeLanguageTools extends ExecutableTools {
        File getCompilerExecutable();
    
        File getLinkerExecutable();
    
        File getArchiverExecutable();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 981 bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/net/idna/trie.go

    type sparseBlocks struct {
    	values []valueRange
    	offset []uint16
    }
    
    var idnaSparse = sparseBlocks{
    	values: idnaSparseValues[:],
    	offset: idnaSparseOffset[:],
    }
    
    // Don't use newIdnaTrie to avoid unconditional linking in of the table.
    var trie = &idnaTrie{}
    
    // lookup determines the type of block n and looks up the value for b.
    // For n < t.cutoff, the block is a simple lookup table. Otherwise, the block
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 21:37:23 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/link_external_undef.txt

    # Test case for issue 47993, in which the linker crashes
    # on a bad input instead of issuing an error and exiting.
    
    # This test requires external linking, so use cgo as a proxy 
    [!cgo] skip
    
    ! go build -ldflags='-linkmode=external' .
    ! stderr 'panic'
    stderr '^.*undefined symbol in relocation.*'
    
    -- go.mod --
    
    module issue47993
    
    go 1.16
    
    -- main.go --
    
    package main
    
    type M struct {
    	b bool
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 21 18:44:09 UTC 2023
    - 806 bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/execarchive.go

    	"path/filepath"
    	"syscall"
    )
    
    const syscallExecSupported = true
    
    // execArchive invokes the archiver tool with syscall.Exec(), with
    // the expectation that this is the last thing that takes place
    // in the linking operation.
    func (ctxt *Link) execArchive(argv []string) {
    	var err error
    	argv0 := argv[0]
    	if filepath.Base(argv0) == argv0 {
    		argv0, err = exec.LookPath(argv0)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 876 bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/outbuf_mmap.go

    		out.munmap()
    	}
    
    	for {
    		if err = out.fallocate(filesize); err != syscall.EINTR {
    			break
    		}
    	}
    	if err != nil {
    		// Some file systems do not support fallocate. We ignore that error as linking
    		// can still take place, but you might SIGBUS when you write to the mmapped
    		// area.
    		if err != syscall.ENOTSUP && err != syscall.EPERM && err != errNoFallocate {
    			return err
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:20:31 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. src/runtime/rt0_linux_ppc64.s

    	// argv as argc string pointers followed by a NULL, envv as a
    	// sequence of string pointers followed by a NULL, and auxv.
    	// There is no TLS base pointer.
    	//
    	// TODO(austin): Support ABI v1 dynamic linking entry point
    	XOR	R0, R0 // Note, newer kernels may not always set R0 to 0.
    	MOVD	$runtime·rt0_go(SB), R12
    	MOVD	R12, CTR
    	MOVBZ	runtime·iscgo(SB), R5
    	CMP	R5, $0
    	BEQ	nocgo
    	BR	(CTR)
    nocgo:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 22:20:51 UTC 2023
    - 847 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/link_syso_issue33139.txt

    # embedded in a package, that is referenced by a Go assembly function.
    # See issue 33139.
    
    [!compiler:gc] skip
    [!cgo] skip
    [short] skip 'invokes system C compiler'
    
    # External linking is not supported on linux/ppc64.
    # See: https://github.com/golang/go/issues/8912
    [GOOS:linux] [GOARCH:ppc64] skip
    
    cc -c -o syso/objTestImpl.syso syso/src/objTestImpl.c
    go build -ldflags='-linkmode=external' ./cmd/main.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 1K bytes
    - Viewed (0)
Back to top