25 lines
		
	
	
		
			833 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
		
		
			
		
	
	
			25 lines
		
	
	
		
			833 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| 
								 | 
							
								--- source.org/src/cmd/dist/test.go	2018-02-22 10:40:40.089632339 +0000
							 | 
						||
| 
								 | 
							
								+++ source/src/cmd/dist/test.go	2018-02-22 10:56:53.075193788 +0000
							 | 
						||
| 
								 | 
							
								@@ -526,21 +526,6 @@
							 | 
						||
| 
								 | 
							
								 		})
							 | 
						||
| 
								 | 
							
								 	}
							 | 
						||
| 
								 | 
							
								 
							 | 
						||
| 
								 | 
							
								-	// Test internal linking of PIE binaries where it is supported.
							 | 
						||
| 
								 | 
							
								-	if goos == "linux" && goarch == "amd64" && !isAlpineLinux() {
							 | 
						||
| 
								 | 
							
								-		// Issue 18243: We don't have a way to set the default
							 | 
						||
| 
								 | 
							
								-		// dynamic linker used in internal linking mode. So
							 | 
						||
| 
								 | 
							
								-		// this test is skipped on Alpine.
							 | 
						||
| 
								 | 
							
								-		t.tests = append(t.tests, distTest{
							 | 
						||
| 
								 | 
							
								-			name:    "pie_internal",
							 | 
						||
| 
								 | 
							
								-			heading: "internal linking of -buildmode=pie",
							 | 
						||
| 
								 | 
							
								-			fn: func(dt *distTest) error {
							 | 
						||
| 
								 | 
							
								-				t.addCmd(dt, "src", t.goTest(), "reflect", "-buildmode=pie", "-ldflags=-linkmode=internal", t.timeout(60))
							 | 
						||
| 
								 | 
							
								-				return nil
							 | 
						||
| 
								 | 
							
								-			},
							 | 
						||
| 
								 | 
							
								-		})
							 | 
						||
| 
								 | 
							
								-	}
							 | 
						||
| 
								 | 
							
								-
							 | 
						||
| 
								 | 
							
								 	// sync tests
							 | 
						||
| 
								 | 
							
								 	t.tests = append(t.tests, distTest{
							 | 
						||
| 
								 | 
							
								 		name:    "sync_cpu",
							 |