diff options
author | Rob Pike <r@golang.org> | 2014-08-12 17:04:45 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2014-08-12 17:04:45 -0700 |
commit | 02573c02d6a6f5f2fc291c18cbca0c6bfeea1ab9 (patch) | |
tree | 941cd76be82e2c18216d8003cee4dac29004e657 /src/pkg/math/big | |
parent | c36198b3f166e5c266a690ae07e44b9c5ff5496c (diff) | |
download | go-02573c02d6a6f5f2fc291c18cbca0c6bfeea1ab9.tar.gz |
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://codereview.appspot.com/128050043
Diffstat (limited to 'src/pkg/math/big')
-rw-r--r-- | src/pkg/math/big/arith_386.s | 2 | ||||
-rw-r--r-- | src/pkg/math/big/arith_amd64.s | 2 | ||||
-rw-r--r-- | src/pkg/math/big/arith_amd64p32.s | 2 | ||||
-rw-r--r-- | src/pkg/math/big/arith_arm.s | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/math/big/arith_386.s b/src/pkg/math/big/arith_386.s index 15b036c65..1b47c898f 100644 --- a/src/pkg/math/big/arith_386.s +++ b/src/pkg/math/big/arith_386.s @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -#include "../../../cmd/ld/textflag.h" +#include "textflag.h" // This file provides fast assembly versions for the elementary // arithmetic operations on vectors implemented in arith.go. diff --git a/src/pkg/math/big/arith_amd64.s b/src/pkg/math/big/arith_amd64.s index e2113a7e3..56c4cb050 100644 --- a/src/pkg/math/big/arith_amd64.s +++ b/src/pkg/math/big/arith_amd64.s @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -#include "../../../cmd/ld/textflag.h" +#include "textflag.h" // This file provides fast assembly versions for the elementary // arithmetic operations on vectors implemented in arith.go. diff --git a/src/pkg/math/big/arith_amd64p32.s b/src/pkg/math/big/arith_amd64p32.s index 227870a00..908dbbdc5 100644 --- a/src/pkg/math/big/arith_amd64p32.s +++ b/src/pkg/math/big/arith_amd64p32.s @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -#include "../../../cmd/ld/textflag.h" +#include "textflag.h" TEXT ·mulWW(SB),NOSPLIT,$0 JMP ·mulWW_g(SB) diff --git a/src/pkg/math/big/arith_arm.s b/src/pkg/math/big/arith_arm.s index 8d36761c4..a4c51c212 100644 --- a/src/pkg/math/big/arith_arm.s +++ b/src/pkg/math/big/arith_arm.s @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -#include "../../../cmd/ld/textflag.h" +#include "textflag.h" // This file provides fast assembly versions for the elementary // arithmetic operations on vectors implemented in arith.go. |