]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/ld: add -buildmode=c-shared as an alternative to -shared
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Fri, 27 Mar 2015 02:48:27 +0000 (02:48 +0000)
committerIan Lance Taylor <iant@golang.org>
Wed, 8 Apr 2015 21:51:14 +0000 (21:51 +0000)
commit2a5f88d85072b30549c348a04e710fa26629e44b
treec459c61be3341c538b695f83867a64893b905316
parent47746f10fe26503984a99be0b081c642e1557d4e
cmd/internal/ld: add -buildmode=c-shared as an alternative to -shared

The linker currently (on some platforms) takes a -shared flag, which means
approximately what -buildmode=c-shared means in the in the proposed "Go
Execution Modes" document. As part of implementing other modes, the term
"shared" becomes horribly overloaded, so this replaces -shared with a
-buildmode argument instead (which currently only handles -buildmode=c-shared
and the default -buildmode=exe -- no new behaviour here).

As the linker support for -shared was in 1.4 this retains it as an alias.

Change-Id: Id2ebb8e05ee07f46208a554bc2622d0e67b47082
Reviewed-on: https://go-review.googlesource.com/8304
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/5l/asm.go
src/cmd/6l/asm.go
src/cmd/6l/obj.go
src/cmd/internal/ld/data.go
src/cmd/internal/ld/elf.go
src/cmd/internal/ld/go.go
src/cmd/internal/ld/lib.go
src/cmd/internal/ld/pobj.go