aboutsummaryrefslogtreecommitdiff
path: root/doc/asm.html
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2014-08-12 17:04:45 -0700
committerRob Pike <r@golang.org>2014-08-12 17:04:45 -0700
commit8bca148a3e81631126b8d74e18c6cdb203313217 (patch)
tree605165d6b5eb760f19550d83d84fddfb6106dbbe /doc/asm.html
parentce35994d4e8411a24833e4db3ddbfc6962eea467 (diff)
downloadgo-8bca148a3e81631126b8d74e18c6cdb203313217.tar.gz
go-8bca148a3e81631126b8d74e18c6cdb203313217.zip
all: copy cmd/ld/textflag.h into pkg/GOOS_GOARCH
The file is used by assembly code to define symbols like NOSPLIT. Having it hidden inside the cmd directory makes it hard to access outside the standard repository. Solution: As with a couple of other files used by cgo, copy the file into the pkg directory and add a -I argument to the assembler to access it. Thus one can write just #include "textflag.h" in .s files. The names in runtime are not updated because in the boot sequence the file has not been copied yet when runtime is built. All other .s files in the repository are updated. Changes to doc/asm.html, src/cmd/dist/build.c, and src/cmd/go/build.go are hand-made. The rest are just the renaming done by a global substitution. (Yay sam). LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/128050043
Diffstat (limited to 'doc/asm.html')
-rw-r--r--doc/asm.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/asm.html b/doc/asm.html
index f4ef1e62f2..943347216e 100644
--- a/doc/asm.html
+++ b/doc/asm.html
@@ -253,7 +253,7 @@ There may be one or two arguments to the directives.
If there are two, the first is a bit mask of flags,
which can be written as numeric expressions, added or or-ed together,
or can be set symbolically for easier absorption by a human.
-Their values, defined in the file <code>src/cmd/ld/textflag.h</code>, are:
+Their values, defined in the standard <code>#include</code> file <code>textflag.h</code>, are:
</p>
<ul>