]> Cypherpunks repositories - gostls13.git/commit
liblink, cmd/6l: re-enable -shared on amd64
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Tue, 10 Feb 2015 02:56:32 +0000 (15:56 +1300)
committerIan Lance Taylor <iant@golang.org>
Wed, 4 Mar 2015 01:55:30 +0000 (01:55 +0000)
commit09d9520be931a32a8ab18990a5684550e3f4b6cb
tree487220c737971abae0ce5ea3da6a897bfad185a8
parent671472c1c9e9d7bd61e0e7d94a4e7a72a3d3383e
liblink, cmd/6l: re-enable -shared on amd64

The creation of liblink and subsequent introduction of more explicit
TLS handling broke 6l's (unsupported) -shared flag.  This change adds
-shared flags to cmd/asm and 6g and changes liblink to generate shared-
library compatible instruction sequences when they are passed, and
changes 6l to emit the appropriate ELF relocation.

A proper fix probably also requires go tool changes.

Fixes #9652.

Change-Id: I7b7718fe7305c802ac994f4a5c8de68cfbe6c76b
Reviewed-on: https://go-review.googlesource.com/4321
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/6l/asm.go
src/cmd/asm/internal/flags/flags.go
src/cmd/asm/main.go
src/cmd/internal/gc/lex.go
src/cmd/internal/obj/x86/asm6.go
src/cmd/internal/obj/x86/obj6.go