mirror of
https://github.com/golang/go.git
synced 2026-02-05 18:35:03 +03:00
cmd/link: don't pass -Wl,-S on AIX
The AIX linker's -S flag has a different meaning. Don't pass it. Updates #75618. Change-Id: I98faabea3435cde255f4c2d25f34dde9f69b7ec9 Reviewed-on: https://go-review.googlesource.com/c/go/+/707097 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
@@ -1452,7 +1452,9 @@ func (ctxt *Link) hostlink() {
|
||||
argv = append(argv, "-s")
|
||||
}
|
||||
} else if *FlagW {
|
||||
argv = append(argv, "-Wl,-S") // suppress debugging symbols
|
||||
if !ctxt.IsAIX() { // The AIX linker's -S has different meaning
|
||||
argv = append(argv, "-Wl,-S") // suppress debugging symbols
|
||||
}
|
||||
}
|
||||
|
||||
// On darwin, whether to combine DWARF into executable.
|
||||
|
||||
Reference in New Issue
Block a user