-
Notifications
You must be signed in to change notification settings - Fork 19k
cmd/link: -buildmode=pie binaries fail to run on s390x #78171
Copy link
Copy link
Closed
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.FeatureRequestIssues asking for a new feature that does not need a proposal.Issues asking for a new feature that does not need a proposal.FixPendingIssues that have a fix which has not yet been reviewed or submitted.Issues that have a fix which has not yet been reviewed or submitted.arch-s390xIssues solely affecting the s390x architecture.Issues solely affecting the s390x architecture.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Milestone
Metadata
Metadata
Assignees
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.FeatureRequestIssues asking for a new feature that does not need a proposal.Issues asking for a new feature that does not need a proposal.FixPendingIssues that have a fix which has not yet been reviewed or submitted.Issues that have a fix which has not yet been reviewed or submitted.arch-s390xIssues solely affecting the s390x architecture.Issues solely affecting the s390x architecture.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Type
Projects
Status
Done
Go version
go version go1.27-devel_6614616b75 Fri Mar 13 21:05:19 2026 -0700 linux/s390x
Output of
go envin your module/workspace:What did you do?
Built a simple Go program using -buildmode=pie on linux/s390x
`package main
func main() {
println("hello world")
}
CGO_ENABLED=0 go build -buildmode=pie -o main main.go
`
What did you see happen?
root@t83lp35:~/go_compiler/dev/test/tt # ./main
-bash: ./main: No such file or directory
What did you expect to see?
hello world