Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for dtolsym (0.16 sec)

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

    		return
    	}
    	newattr(die, attr, dwarf.DW_CLS_REFERENCE, 0, dwSym(ref))
    }
    
    func (d *dwctxt) dtolsym(s dwarf.Sym) loader.Sym {
    	if s == nil {
    		return 0
    	}
    	dws := loader.Sym(s.(dwSym))
    	return dws
    }
    
    func (d *dwctxt) putdie(syms []loader.Sym, die *dwarf.DWDie) []loader.Sym {
    	s := d.dtolsym(die.Sym)
    	if s == 0 {
    		s = syms[len(syms)-1]
    	} else {
    		syms = append(syms, s)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcshared/testdata/main5.c

    	if (verbose) {
    		fprintf(stderr, "calling dlsym\n");
    	}
    
    	resetSIGIO = (void (*)(void))dlsym(handle, "ResetSIGIO");
    	if (resetSIGIO == NULL) {
    		fprintf(stderr, "%s\n", dlerror());
    		exit(EXIT_FAILURE);
    	}
    
    	if (verbose) {
    		fprintf(stderr, "calling ResetSIGIO\n");
    	}
    
    	resetSIGIO();
    
    	sawSIGIO = (bool (*)(void))dlsym(handle, "SawSIGIO");
    	if (sawSIGIO == NULL) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue4029.c

    #include <dlfcn.h>
    
    // Write our own versions of dlopen/dlsym/dlclose so that we represent
    // the opaque handle as a Go uintptr rather than a Go pointer to avoid
    // garbage collector confusion.  See issue 23663.
    
    uintptr_t dlopen4029(char* name, int flags) {
    	return (uintptr_t)(dlopen(name, flags));
    }
    
    uintptr_t dlsym4029(uintptr_t handle, char* name) {
    	return (uintptr_t)(dlsym((void*)(handle), name));
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 15:41:19 UTC 2023
    - 781 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcshared/testdata/main4.c

    	if (handle == NULL) {
    		fprintf(stderr, "%s\n", dlerror());
    		exit(EXIT_FAILURE);
    	}
    
    	if (verbose) {
    		fprintf(stderr, "calling dlsym\n");
    	}
    
    	// Start some goroutines.
    	fn = (void(*)(void))dlsym(handle, "RunGoroutines");
    	if (fn == NULL) {
    		fprintf(stderr, "%s\n", dlerror());
    		exit(EXIT_FAILURE);
    	}
    
    	if (verbose) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testcshared/testdata/main1.c

    // license that can be found in the LICENSE file.
    
    #include <stdint.h>
    #include <stdio.h>
    #include <dlfcn.h>
    
    int check_int8(void* handle, const char* fname, int8_t want) {
      int8_t (*fn)();
      fn = (int8_t (*)())dlsym(handle, fname);
      if (!fn) {
        fprintf(stderr, "ERROR: missing %s: %s\n", fname, dlerror());
        return 1;
      }
      signed char ret = fn();
      if (ret != want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/issue4029.go

    		t.Error("dlopen:", C.GoString(C.dlerror()))
    		return
    	}
    	defer C.dlclose4029(this_process)
    
    	symbol_address := C.dlsym4029(this_process, C.CString(symbol))
    	if symbol_address == 0 {
    		t.Error("dlsym:", C.GoString(C.dlerror()))
    		return
    	}
    	t.Log(symbol, symbol_address)
    	C.call4029(symbol_address)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 15:41:19 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. src/runtime/race/race_darwin_amd64.go

    //go:cgo_import_dynamic _sanitizer_internal_memset _sanitizer_internal_memset ""
    //go:cgo_import_dynamic abort abort ""
    //go:cgo_import_dynamic arc4random_buf arc4random_buf ""
    //go:cgo_import_dynamic close close ""
    //go:cgo_import_dynamic dlsym dlsym ""
    //go:cgo_import_dynamic dup dup ""
    //go:cgo_import_dynamic dup2 dup2 ""
    //go:cgo_import_dynamic dyld_shared_cache_iterate_text dyld_shared_cache_iterate_text ""
    //go:cgo_import_dynamic execve execve ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:29:22 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. src/runtime/race/race_darwin_arm64.go

    //go:cgo_import_dynamic abort abort ""
    //go:cgo_import_dynamic arc4random_buf arc4random_buf ""
    //go:cgo_import_dynamic bzero bzero ""
    //go:cgo_import_dynamic close close ""
    //go:cgo_import_dynamic dlsym dlsym ""
    //go:cgo_import_dynamic dup dup ""
    //go:cgo_import_dynamic dup2 dup2 ""
    //go:cgo_import_dynamic dyld_shared_cache_iterate_text dyld_shared_cache_iterate_text ""
    //go:cgo_import_dynamic execve execve ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:29:22 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testcshared/testdata/main3.c

      if (!handle) {
        fprintf(stderr, "ERROR: failed to open the shared library: %s\n",
                dlerror());
        return 2;
      }
    
      uintptr_t main_fn = (uintptr_t)dlsym(handle, "main.main");
      if (!main_fn) {
        fprintf(stderr, "ERROR: missing main.main: %s\n", dlerror());
        return 2;
      }
    
      // TODO(hyangah): check that main.main can run.
    
      printf("PASS\n");
      return 0;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 785 bytes
    - Viewed (0)
  10. src/runtime/cgo/gcc_android.c

    	if (handle == NULL) {
    		fatalf("inittls: failed to dlopen main program");
    		return;
    	}
    	// android_get_device_api_level is introduced in Android Q, so its mere presence
    	// is enough.
    	get_ver = dlsym(handle, "android_get_device_api_level");
    	dlclose(handle);
    	if (get_ver != NULL) {
    		off = (void *)(TLS_SLOT_APP*sizeof(void *));
    		// tlsg is initialized to Q's free TLS slot. Verify it while we're here.
    		if (*tlsg != off) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 09 23:17:17 UTC 2020
    - 2.6K bytes
    - Viewed (0)
Back to top