%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/go119/src/cmd/go/testdata/script/
Upload File :
Create Path :
Current File : //usr/local/go119/src/cmd/go/testdata/script/version_gc_sections.txt

# This test checks that external linking with --gc-sections does not strip version information.

[short] skip
[!cgo] skip
[aix] skip  # no --gc-sections
[darwin] skip  # no --gc-sections

go build -ldflags='-linkmode=external -extldflags=-Wl,--gc-sections'
go version hello$GOEXE
! stdout 'not a Go executable'
! stderr 'not a Go executable'

-- go.mod --
module hello
-- hello.go --
package main

/*
*/
import "C"

func main() {
	println("hello")
}

Zerion Mini Shell 1.0