mirror of
				https://github.com/go-delve/delve.git
				synced 2025-11-01 03:42:59 +08:00 
			
		
		
		
	 5ca60a81e8
			
		
	
	5ca60a81e8
	
	
	
		
			
			Go change 064f34f (which exists in Go 1.19.2 and following) removed the pagezero_size option from linker calls (because it is deprecated). This expanded the problem that exists on darwin/arm64 as well as PIE builds on darwin/amd64 to all darwin/amd64 builds. This problem is described on: https://github.com/golang/go/issues/25841. This commit extends the darwin/arm64 workaround to darwin/amd64. Fixes #3194
		
			
				
	
	
		
			18 lines
		
	
	
		
			226 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			226 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package main
 | |
| 
 | |
| /*
 | |
| #cgo LDFLAGS: -framework CoreFoundation
 | |
| #cgo LDFLAGS: -framework CFNetwork
 | |
| #include <CFNetwork/CFProxySupport.h>
 | |
| */
 | |
| import "C"
 | |
| import "fmt"
 | |
| 
 | |
| func main() {
 | |
| 	f() // break here
 | |
| }
 | |
| 
 | |
| func f() {
 | |
| 	fmt.Println("ok")
 | |
| }
 |