]> Cypherpunks repositories - gostls13.git/commit
cmd/6l: use .plt instead of .got on Solaris
authorAram Hăvărneanu <aram@mgk.ro>
Mon, 30 Mar 2015 11:46:28 +0000 (13:46 +0200)
committerAram Hăvărneanu <aram@mgk.ro>
Wed, 6 May 2015 11:36:39 +0000 (11:36 +0000)
commite481aac0e1f7c26ce5c86c5771bcd4ca81e90765
tree5f923f5535b849aec3b5f91442dfe433bfd61765
parentf77e10fb2e1cb79b27727908fa081c890ecf118f
cmd/6l: use .plt instead of .got on Solaris

Solaris requires all external procedures to be accessed through the
PLT. If 6l won't do it, /bin/ld will, so all the code written with .GOT
in mind won't work with the external linker.

This CL makes external linking work, opening the path to cgo support
on Solaris.

This CL breaks the Solaris build, this is fixed in subsequent CLs in
this series.

Change-Id: If370a79f49fdbe66d28b89fa463b4f3e91685f69
Reviewed-on: https://go-review.googlesource.com/8214
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
src/cmd/6l/asm.go