1
0
mirror of https://github.com/golang/go synced 2024-11-11 18:51:37 -07:00
The Go programming language
Go to file
Austin Clements e04c8b063f [dev.cc] liblink: don't patch jumps to jumps to symbols
When liblink sees something like

       JMP x
       ...
    x: JMP y

it rewrites the first jump to jump directly to y.  This is
fine if y is a resolved label.  However, it *also* does this
if y is a function symbol, but fails to carry over the
relocation that would later patch in that symbol's value.  As
a result, the original jump becomes either a self-jump (if
relative) or a jump to PC 0 (if absolute).

Fix this by disabling this optimization if the jump being
patched in is a jump to a symbol.

LGTM=minux
R=rsc, minux
CC=golang-codereviews
https://golang.org/cl/185890044
2014-12-05 09:24:01 -05:00
api unicode: strconv: regexp: Upgrade to Unicode 7.0.0. 2014-08-18 20:26:10 +02:00
doc doc/go1.4.html: rewrite first sentence to make it clearer 2014-11-18 13:32:00 +11:00
include [dev.cc] liblink: more docs on Prog and Addr fields 2014-11-21 15:58:29 -05:00
lib [dev.cc] all: merge dev.power64 (7667e41f3ced) into dev.cc 2014-11-14 12:10:52 -05:00
misc undo CL 176900044 / 561398621ba7 2014-11-17 14:21:29 +11:00
src [dev.cc] liblink: don't patch jumps to jumps to symbols 2014-12-05 09:24:01 -05:00
test [dev.cc] all: merge default (e4ab8f908aac) into dev.cc 2014-11-20 11:48:08 -05:00
.hgignore [dev.power64] all: merge default into dev.power64 2014-10-22 15:51:54 -04:00
.hgtags bump go1.4rc1 tag 2014-11-17 14:41:18 +11:00
AUTHORS A+C: add another email address for Emil Hessman 2014-11-12 10:01:23 -08:00
CONTRIBUTORS C: add Nick Cooper (Google CLA). 2014-11-14 17:03:17 +11:00
dev.cc [dev.cc] create new branch 2014-11-09 21:14:36 -05:00
favicon.ico godoc: update favicon 2012-10-11 17:02:36 +11:00
LICENSE doc: update licensing text one more time 2012-03-27 15:09:13 +11:00
PATENTS
README README: Fix installation instructions 2013-11-20 13:47:37 -08:00
robots.txt

This is the source code repository for the Go programming language.  

For documentation about how to install and use Go,
visit http://golang.org/ or load doc/install-source.html
in your web browser.

After installing Go, you can view a nicely formatted
doc/install-source.html by running godoc --http=:6060
and then visiting http://localhost:6060/doc/install/source.

Unless otherwise noted, the Go source files are distributed
under the BSD-style license found in the LICENSE file.

--

Binary Distribution Notes

If you have just untarred a binary Go distribution, you need to set
the environment variable $GOROOT to the full path of the go
directory (the one containing this README).  You can omit the
variable if you unpack it into /usr/local/go, or if you rebuild
from sources by running all.bash (see doc/install.html).
You should also add the Go binary directory $GOROOT/bin
to your shell's path.

For example, if you extracted the tar file into $HOME/go, you might
put the following in your .profile:

    export GOROOT=$HOME/go
    export PATH=$PATH:$GOROOT/bin

See doc/install.html for more details.