]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: fix error messages for external linking on ppc64
authorClément Chigot <clement.chigot@atos.net>
Fri, 23 Nov 2018 14:16:18 +0000 (15:16 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 17 Dec 2018 16:40:55 +0000 (16:40 +0000)
This commit fixes error messages displayed on aix/ppc64 with external
linking.

Change-Id: I5311d36f30394be717827891e070db249482814a
Reviewed-on: https://go-review.googlesource.com/c/151041
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/link/internal/ld/config.go

index 2f6dd7a7e22d84829634a2977f6d91071e1b1b23..60b6491859574ed07993e6025283591a5db7e509 100644 (file)
@@ -248,7 +248,7 @@ func determineLinkMode(ctxt *Link) {
                        ctxt.LinkMode = LinkInternal
                case "1":
                        if objabi.GOARCH == "ppc64" {
-                               Exitf("external linking requested via GO_EXTLINK_ENABLED but not supported for linux/ppc64")
+                               Exitf("external linking requested via GO_EXTLINK_ENABLED but not supported for %s/ppc64", objabi.GOOS)
                        }
                        ctxt.LinkMode = LinkExternal
                default:
@@ -262,7 +262,7 @@ func determineLinkMode(ctxt *Link) {
                                ctxt.LinkMode = LinkInternal
                        }
                        if objabi.GOARCH == "ppc64" && ctxt.LinkMode == LinkExternal {
-                               Exitf("external linking is not supported for linux/ppc64")
+                               Exitf("external linking is not supported for %s/ppc64", objabi.GOOS)
                        }
                }
        case LinkInternal:
@@ -271,7 +271,7 @@ func determineLinkMode(ctxt *Link) {
                }
        case LinkExternal:
                if objabi.GOARCH == "ppc64" {
-                       Exitf("external linking not supported for linux/ppc64")
+                       Exitf("external linking not supported for %s/ppc64", objabi.GOOS)
                }
        }
 }