Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ASLR (0.03 sec)

  1. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/AbstractInstalledToolChainIntegrationSpec.groovy

            // Visual C++ compiler embeds a timestamp in every object file, and ASLR is non-deterministic
            toolChain.visualCpp || objectiveCWithAslr
        }
    
        // compiling Objective-C and Objective-Cpp with clang generates
        // random different object files (related to ASLR settings)
        // We saw this behaviour only on linux so far.
        // 2021-4-15: recent GCC also enable ASLR by default:
        // https://wiki.ubuntu.com/Security/Features
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. src/cmd/link/doc.go

    		a function call or refers to other variables.
    		Note that before Go 1.5 this option took two separate arguments.
    	-asan
    		Link with C/C++ address sanitizer support.
    	-aslr
    		Enable ASLR for buildmode=c-shared on windows (default true).
    	-bindnow
    		Mark a dynamically linked ELF object for immediate function binding (default false).
    	-buildid id
    		Record id as Go toolchain build id.
    	-buildmode mode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:11:52 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/ld_test.go

    	switch platform {
    	case "windows/amd64", "windows/386":
    	default:
    		t.Skip("skipping windows amd64/386 only test")
    	}
    
    	testenv.MustHaveCGO(t)
    
    	t.Run("aslr", func(t *testing.T) {
    		testWindowsBuildmodeCSharedASLR(t, true)
    	})
    	t.Run("no-aslr", func(t *testing.T) {
    		testWindowsBuildmodeCSharedASLR(t, false)
    	})
    }
    
    func testWindowsBuildmodeCSharedASLR(t *testing.T, useASLR bool) {
    	t.Parallel()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 05:45:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  4. src/runtime/cgo/gcc_darwin_arm64.c

    		}
    	}
    }
    
    #endif // TARGET_OS_IPHONE
    
    void
    x_cgo_init(G *g, void (*setg)(void*))
    {
    	//fprintf(stderr, "x_cgo_init = %p\n", &x_cgo_init); // aid debugging in presence of ASLR
    	setg_gcc = setg;
    	_cgo_set_stacklo(g, NULL);
    
    #if TARGET_OS_IPHONE
    	darwin_arm_init_mach_exception_handler();
    	darwin_arm_init_thread_exception_port();
    	init_working_dir();
    #endif
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 03:13:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. src/runtime/unsafepoint_test.go

    			continue
    		}
    		pc, err := strconv.ParseUint(parts[1][2:], 16, 64)
    		if err != nil {
    			t.Fatalf("can't parse pc %s: %v", parts[1], err)
    		}
    		if entry == 0 {
    			entry = pc
    		}
    		// Note that some platforms do ASLR, so the PCs in the disassembly
    		// don't match PCs in the address space. Only offsets from function
    		// entry make sense.
    		unsafe := runtime.UnsafePoint(f.Entry() + uintptr(pc-entry))
    		t.Logf("unsafe: %v\n", unsafe)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 20:24:56 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/main.go

    	flagMsan          = flag.Bool("msan", false, "enable MSan interface")
    	flagAsan          = flag.Bool("asan", false, "enable ASan interface")
    	flagAslr          = flag.Bool("aslr", true, "enable ASLR for buildmode=c-shared on windows")
    
    	flagFieldTrack = flag.String("k", "", "set field tracking `symbol`")
    	flagLibGCC     = flag.String("libgcc", "", "compiler support lib for internal linking; use \"none\" to disable")
    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/cmd/link/internal/ld/elf.go

    	out.Write(ELF_NOTE_NETBSD_NAME)
    	out.Write8(0)
    	out.Write32(ELF_NOTE_NETBSD_VERSION)
    
    	return int(sh.Size)
    }
    
    // The race detector can't handle ASLR (address space layout randomization).
    // ASLR is on by default for NetBSD, so we turn the ASLR off explicitly
    // using a magic elf Note when building race binaries.
    
    func elfnetbsdpax(sh *ElfShdr, startva uint64, resoff uint64) int {
    	n := int(Rnd(4, 4) + Rnd(4, 4))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/elfexec/elfexec.go

    		//       VADDR=0xffffffff80200000
    		// stextOffset=0xffffffff80200198
    		//       Start=0xffffffff83200000
    		//       Limit=0xffffffff84200000
    		//      Offset=0 (0xc000000000000000 for PowerPC64) (== Start for ASLR kernel)
    		// So the base should be:
    		if stextOffset != nil && (start%pageSize) == (*stextOffset%pageSize) {
    			// perf uses the address of _stext as start. Some tools may
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/lib.go

    		}
    	}
    
    	// Enable/disable ASLR on Windows.
    	addASLRargs := func(argv []string, val bool) []string {
    		// Old/ancient versions of GCC support "--dynamicbase" and
    		// "--high-entropy-va" but don't enable it by default. In
    		// addition, they don't accept "--disable-dynamicbase" or
    		// "--no-dynamicbase", so the only way to disable ASLR is to
    		// not pass any flags at all.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  10. src/internal/bisect/bisect.go

    func (m *Matcher) stack(w Writer) bool {
    	const maxStack = 16
    	var stk [maxStack]uintptr
    	n := runtime.Callers(2, stk[:])
    	// caller #2 is not for printing; need it to normalize PCs if ASLR.
    	if n <= 1 {
    		return false
    	}
    
    	base := stk[0]
    	// normalize PCs
    	for i := range stk[:n] {
    		stk[i] -= base
    	}
    
    	h := Hash(stk[:n])
    	if m.ShouldPrint(h) {
    		var d *dedup
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 17:28:43 UTC 2024
    - 22.9K bytes
    - Viewed (0)
Back to top