]> Cypherpunks repositories - gostls13.git/commit
all: copy cmd/ld/textflag.h into pkg/GOOS_GOARCH
authorRob Pike <r@golang.org>
Wed, 13 Aug 2014 00:04:45 +0000 (17:04 -0700)
committerRob Pike <r@golang.org>
Wed, 13 Aug 2014 00:04:45 +0000 (17:04 -0700)
commit8bca148a3e81631126b8d74e18c6cdb203313217
tree605165d6b5eb760f19550d83d84fddfb6106dbbe
parentce35994d4e8411a24833e4db3ddbfc6962eea467
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
128 files changed:
doc/asm.html
src/cmd/dist/build.c
src/cmd/go/build.go
src/cmd/link/testdata/autosection.s
src/cmd/link/testdata/layout.s
src/pkg/crypto/aes/asm_amd64.s
src/pkg/crypto/md5/md5block_386.s
src/pkg/crypto/md5/md5block_amd64.s
src/pkg/crypto/md5/md5block_amd64p32.s
src/pkg/crypto/md5/md5block_arm.s
src/pkg/crypto/rc4/rc4_386.s
src/pkg/crypto/rc4/rc4_amd64.s
src/pkg/crypto/rc4/rc4_amd64p32.s
src/pkg/crypto/rc4/rc4_arm.s
src/pkg/crypto/sha1/sha1block_386.s
src/pkg/crypto/sha1/sha1block_amd64.s
src/pkg/crypto/sha1/sha1block_amd64p32.s
src/pkg/crypto/sha1/sha1block_arm.s
src/pkg/crypto/sha256/sha256block_amd64.s
src/pkg/crypto/sha512/sha512block_amd64.s
src/pkg/hash/crc32/crc32_amd64.s
src/pkg/hash/crc32/crc32_amd64p32.s
src/pkg/math/abs_386.s
src/pkg/math/abs_amd64.s
src/pkg/math/abs_arm.s
src/pkg/math/asin_386.s
src/pkg/math/asin_amd64.s
src/pkg/math/asin_arm.s
src/pkg/math/atan2_386.s
src/pkg/math/atan2_amd64.s
src/pkg/math/atan2_arm.s
src/pkg/math/atan_386.s
src/pkg/math/atan_amd64.s
src/pkg/math/atan_arm.s
src/pkg/math/big/arith_386.s
src/pkg/math/big/arith_amd64.s
src/pkg/math/big/arith_amd64p32.s
src/pkg/math/big/arith_arm.s
src/pkg/math/dim_386.s
src/pkg/math/dim_amd64.s
src/pkg/math/dim_arm.s
src/pkg/math/exp2_386.s
src/pkg/math/exp2_amd64.s
src/pkg/math/exp2_arm.s
src/pkg/math/exp_386.s
src/pkg/math/exp_amd64.s
src/pkg/math/exp_arm.s
src/pkg/math/expm1_386.s
src/pkg/math/expm1_amd64.s
src/pkg/math/expm1_arm.s
src/pkg/math/floor_386.s
src/pkg/math/floor_amd64.s
src/pkg/math/floor_arm.s
src/pkg/math/frexp_386.s
src/pkg/math/frexp_amd64.s
src/pkg/math/frexp_arm.s
src/pkg/math/hypot_386.s
src/pkg/math/hypot_amd64.s
src/pkg/math/hypot_arm.s
src/pkg/math/ldexp_386.s
src/pkg/math/ldexp_amd64.s
src/pkg/math/ldexp_arm.s
src/pkg/math/log10_386.s
src/pkg/math/log10_amd64.s
src/pkg/math/log10_arm.s
src/pkg/math/log1p_386.s
src/pkg/math/log1p_amd64.s
src/pkg/math/log1p_arm.s
src/pkg/math/log_386.s
src/pkg/math/log_amd64.s
src/pkg/math/log_arm.s
src/pkg/math/mod_386.s
src/pkg/math/mod_amd64.s
src/pkg/math/mod_arm.s
src/pkg/math/modf_386.s
src/pkg/math/modf_amd64.s
src/pkg/math/modf_arm.s
src/pkg/math/remainder_386.s
src/pkg/math/remainder_amd64.s
src/pkg/math/remainder_arm.s
src/pkg/math/sin_386.s
src/pkg/math/sin_amd64.s
src/pkg/math/sin_arm.s
src/pkg/math/sincos_386.s
src/pkg/math/sincos_amd64.s
src/pkg/math/sincos_arm.s
src/pkg/math/sqrt_386.s
src/pkg/math/sqrt_amd64.s
src/pkg/math/sqrt_arm.s
src/pkg/math/tan_386.s
src/pkg/math/tan_amd64.s
src/pkg/math/tan_arm.s
src/pkg/os/signal/sig.s
src/pkg/reflect/asm_386.s
src/pkg/reflect/asm_amd64.s
src/pkg/reflect/asm_amd64p32.s
src/pkg/reflect/asm_arm.s
src/pkg/sync/atomic/asm_386.s
src/pkg/sync/atomic/asm_amd64.s
src/pkg/sync/atomic/asm_amd64p32.s
src/pkg/sync/atomic/asm_arm.s
src/pkg/sync/atomic/asm_freebsd_arm.s
src/pkg/sync/atomic/asm_linux_arm.s
src/pkg/sync/atomic/asm_nacl_arm.s
src/pkg/sync/atomic/asm_netbsd_arm.s
src/pkg/syscall/asm_darwin_386.s
src/pkg/syscall/asm_darwin_amd64.s
src/pkg/syscall/asm_dragonfly_386.s
src/pkg/syscall/asm_dragonfly_amd64.s
src/pkg/syscall/asm_freebsd_386.s
src/pkg/syscall/asm_freebsd_amd64.s
src/pkg/syscall/asm_freebsd_arm.s
src/pkg/syscall/asm_linux_386.s
src/pkg/syscall/asm_linux_amd64.s
src/pkg/syscall/asm_linux_arm.s
src/pkg/syscall/asm_nacl_386.s
src/pkg/syscall/asm_nacl_amd64p32.s
src/pkg/syscall/asm_nacl_arm.s
src/pkg/syscall/asm_netbsd_386.s
src/pkg/syscall/asm_netbsd_amd64.s
src/pkg/syscall/asm_netbsd_arm.s
src/pkg/syscall/asm_openbsd_386.s
src/pkg/syscall/asm_openbsd_amd64.s
src/pkg/syscall/asm_plan9_386.s
src/pkg/syscall/asm_plan9_amd64.s
src/pkg/syscall/time_nacl_386.s
src/pkg/syscall/time_nacl_amd64p32.s
src/pkg/syscall/time_nacl_arm.s