Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. diff --git a/src/cmd/link/internal/ld/config.go b/src/cmd/link/internal/ld/config.go
  2. index 60b6491859..2d8f96408e 100644
  3. --- a/src/cmd/link/internal/ld/config.go
  4. +++ b/src/cmd/link/internal/ld/config.go
  5. @@ -247,9 +247,6 @@ func determineLinkMode(ctxt *Link) {
  6. }
  7. ctxt.LinkMode = LinkInternal
  8. case "1":
  9. - if objabi.GOARCH == "ppc64" {
  10. - Exitf("external linking requested via GO_EXTLINK_ENABLED but not supported for %s/ppc64", objabi.GOOS)
  11. - }
  12. ctxt.LinkMode = LinkExternal
  13. default:
  14. if needed, _ := mustLinkExternal(ctxt); needed {
  15. @@ -261,17 +258,10 @@ func determineLinkMode(ctxt *Link) {
  16. } else {
  17. ctxt.LinkMode = LinkInternal
  18. }
  19. - if objabi.GOARCH == "ppc64" && ctxt.LinkMode == LinkExternal {
  20. - Exitf("external linking is not supported for %s/ppc64", objabi.GOOS)
  21. - }
  22. }
  23. case LinkInternal:
  24. if needed, reason := mustLinkExternal(ctxt); needed {
  25. Exitf("internal linking requested but external linking required: %s", reason)
  26. }
  27. - case LinkExternal:
  28. - if objabi.GOARCH == "ppc64" {
  29. - Exitf("external linking not supported for %s/ppc64", objabi.GOOS)
  30. - }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement