diff options
author | Russ Cox <rsc@golang.org> | 2014-09-04 23:05:18 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-09-04 23:05:18 -0400 |
commit | bec748f05a33fa6a2280b3b2c3e2a19d40763607 (patch) | |
tree | c3f00a35fb5be0ce48671d466ad5335ae5ad3a3f | |
parent | 1e8add5d895ff4d475f14d20d0aed7e4f3ca8448 (diff) | |
download | go-bec748f05a33fa6a2280b3b2c3e2a19d40763607.tar.gz |
runtime: use new #include "textflag.h"
I did this just to clean things up, but it will be important
when we drop the pkg directory later.
LGTM=bradfitz
R=r, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/132600043
106 files changed, 106 insertions, 106 deletions
diff --git a/src/pkg/runtime/asm_386.s b/src/pkg/runtime/asm_386.s index 40271567b..25911a5b9 100644 --- a/src/pkg/runtime/asm_386.s +++ b/src/pkg/runtime/asm_386.s @@ -4,7 +4,7 @@ #include "zasm_GOOS_GOARCH.h" #include "funcdata.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" TEXT runtime·rt0_go(SB),NOSPLIT,$0 // copy arguments forward on an even stack diff --git a/src/pkg/runtime/asm_amd64.s b/src/pkg/runtime/asm_amd64.s index 9103ef29e..962074582 100644 --- a/src/pkg/runtime/asm_amd64.s +++ b/src/pkg/runtime/asm_amd64.s @@ -4,7 +4,7 @@ #include "zasm_GOOS_GOARCH.h" #include "funcdata.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" TEXT runtime·rt0_go(SB),NOSPLIT,$0 // copy arguments forward on an even stack diff --git a/src/pkg/runtime/asm_amd64p32.s b/src/pkg/runtime/asm_amd64p32.s index a0e63b440..64a436495 100644 --- a/src/pkg/runtime/asm_amd64p32.s +++ b/src/pkg/runtime/asm_amd64p32.s @@ -4,7 +4,7 @@ #include "zasm_GOOS_GOARCH.h" #include "funcdata.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" TEXT runtime·rt0_go(SB),NOSPLIT,$0 // copy arguments forward on an even stack diff --git a/src/pkg/runtime/asm_arm.s b/src/pkg/runtime/asm_arm.s index 3869696f6..9e68e099e 100644 --- a/src/pkg/runtime/asm_arm.s +++ b/src/pkg/runtime/asm_arm.s @@ -4,7 +4,7 @@ #include "zasm_GOOS_GOARCH.h" #include "funcdata.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // using frame size $-4 means do not save LR on stack. TEXT runtime·rt0_go(SB),NOSPLIT,$-4 diff --git a/src/pkg/runtime/atomic_386.c b/src/pkg/runtime/atomic_386.c index d7162a1b8..82d36f2d9 100644 --- a/src/pkg/runtime/atomic_386.c +++ b/src/pkg/runtime/atomic_386.c @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. #include "runtime.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #pragma textflag NOSPLIT uint32 diff --git a/src/pkg/runtime/atomic_amd64x.c b/src/pkg/runtime/atomic_amd64x.c index 11b578936..7be57ac95 100644 --- a/src/pkg/runtime/atomic_amd64x.c +++ b/src/pkg/runtime/atomic_amd64x.c @@ -5,7 +5,7 @@ // +build amd64 amd64p32 #include "runtime.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #pragma textflag NOSPLIT uint32 diff --git a/src/pkg/runtime/heapdump.c b/src/pkg/runtime/heapdump.c index 83c2be2ac..d07fdb29b 100644 --- a/src/pkg/runtime/heapdump.c +++ b/src/pkg/runtime/heapdump.c @@ -17,7 +17,7 @@ #include "typekind.h" #include "funcdata.h" #include "zaexperiment.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" extern byte runtime·data[]; extern byte runtime·edata[]; diff --git a/src/pkg/runtime/malloc.c b/src/pkg/runtime/malloc.c index 86846f3e6..752ff60f3 100644 --- a/src/pkg/runtime/malloc.c +++ b/src/pkg/runtime/malloc.c @@ -13,7 +13,7 @@ #include "typekind.h" #include "race.h" #include "stack.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // Mark mheap as 'no pointers', it does not contain interesting pointers but occupies ~45K. #pragma dataflag NOPTR diff --git a/src/pkg/runtime/mem_darwin.c b/src/pkg/runtime/mem_darwin.c index 72a2d18ad..bf3ede577 100644 --- a/src/pkg/runtime/mem_darwin.c +++ b/src/pkg/runtime/mem_darwin.c @@ -7,7 +7,7 @@ #include "defs_GOOS_GOARCH.h" #include "os_GOOS.h" #include "malloc.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #pragma textflag NOSPLIT void* diff --git a/src/pkg/runtime/mem_linux.c b/src/pkg/runtime/mem_linux.c index 01e7707bb..bfb405607 100644 --- a/src/pkg/runtime/mem_linux.c +++ b/src/pkg/runtime/mem_linux.c @@ -7,7 +7,7 @@ #include "defs_GOOS_GOARCH.h" #include "os_GOOS.h" #include "malloc.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" enum { diff --git a/src/pkg/runtime/mem_nacl.c b/src/pkg/runtime/mem_nacl.c index 968fe8da5..6c836f18a 100644 --- a/src/pkg/runtime/mem_nacl.c +++ b/src/pkg/runtime/mem_nacl.c @@ -7,7 +7,7 @@ #include "defs_GOOS_GOARCH.h" #include "os_GOOS.h" #include "malloc.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" enum { diff --git a/src/pkg/runtime/mem_netbsd.c b/src/pkg/runtime/mem_netbsd.c index 8d04c832c..31820e517 100644 --- a/src/pkg/runtime/mem_netbsd.c +++ b/src/pkg/runtime/mem_netbsd.c @@ -7,7 +7,7 @@ #include "defs_GOOS_GOARCH.h" #include "os_GOOS.h" #include "malloc.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" enum { diff --git a/src/pkg/runtime/mem_openbsd.c b/src/pkg/runtime/mem_openbsd.c index 8d04c832c..31820e517 100644 --- a/src/pkg/runtime/mem_openbsd.c +++ b/src/pkg/runtime/mem_openbsd.c @@ -7,7 +7,7 @@ #include "defs_GOOS_GOARCH.h" #include "os_GOOS.h" #include "malloc.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" enum { diff --git a/src/pkg/runtime/mem_plan9.c b/src/pkg/runtime/mem_plan9.c index 4f753adb4..402869f39 100644 --- a/src/pkg/runtime/mem_plan9.c +++ b/src/pkg/runtime/mem_plan9.c @@ -7,7 +7,7 @@ #include "arch_GOARCH.h" #include "malloc.h" #include "os_GOOS.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" extern byte runtime·end[]; static byte *bloc = { runtime·end }; diff --git a/src/pkg/runtime/mem_solaris.c b/src/pkg/runtime/mem_solaris.c index 01cbe9e1a..8e90ba1d9 100644 --- a/src/pkg/runtime/mem_solaris.c +++ b/src/pkg/runtime/mem_solaris.c @@ -7,7 +7,7 @@ #include "defs_GOOS_GOARCH.h" #include "os_GOOS.h" #include "malloc.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" enum { diff --git a/src/pkg/runtime/mem_windows.c b/src/pkg/runtime/mem_windows.c index 33ce003d2..7bc028bf3 100644 --- a/src/pkg/runtime/mem_windows.c +++ b/src/pkg/runtime/mem_windows.c @@ -7,7 +7,7 @@ #include "os_GOOS.h" #include "defs_GOOS_GOARCH.h" #include "malloc.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" enum { MEM_COMMIT = 0x1000, diff --git a/src/pkg/runtime/memclr_386.s b/src/pkg/runtime/memclr_386.s index aeabad413..8b163923e 100644 --- a/src/pkg/runtime/memclr_386.s +++ b/src/pkg/runtime/memclr_386.s @@ -4,7 +4,7 @@ // +build !plan9 -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // void runtime·memclr(void*, uintptr) TEXT runtime·memclr(SB), NOSPLIT, $0-8 diff --git a/src/pkg/runtime/memclr_amd64.s b/src/pkg/runtime/memclr_amd64.s index 01c6a415c..35b3b4bee 100644 --- a/src/pkg/runtime/memclr_amd64.s +++ b/src/pkg/runtime/memclr_amd64.s @@ -4,7 +4,7 @@ // +build !plan9 -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // void runtime·memclr(void*, uintptr) TEXT runtime·memclr(SB), NOSPLIT, $0-16 diff --git a/src/pkg/runtime/memclr_arm.s b/src/pkg/runtime/memclr_arm.s index b19ea72a3..1824d33b1 100644 --- a/src/pkg/runtime/memclr_arm.s +++ b/src/pkg/runtime/memclr_arm.s @@ -23,7 +23,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -#include "../../cmd/ld/textflag.h" +#include "textflag.h" TO = 8 TOE = 11 diff --git a/src/pkg/runtime/memclr_plan9_386.s b/src/pkg/runtime/memclr_plan9_386.s index ed5dbbd3c..b4b671f77 100644 --- a/src/pkg/runtime/memclr_plan9_386.s +++ b/src/pkg/runtime/memclr_plan9_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" // void runtime·memclr(void*, uintptr) TEXT runtime·memclr(SB), NOSPLIT, $0-8 diff --git a/src/pkg/runtime/memclr_plan9_amd64.s b/src/pkg/runtime/memclr_plan9_amd64.s index 64f3c992e..37e61dfbc 100644 --- a/src/pkg/runtime/memclr_plan9_amd64.s +++ b/src/pkg/runtime/memclr_plan9_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" // void runtime·memclr(void*, uintptr) TEXT runtime·memclr(SB),NOSPLIT,$0-16 diff --git a/src/pkg/runtime/memmove_386.s b/src/pkg/runtime/memmove_386.s index 51b08d56d..4c0c74c1a 100644 --- a/src/pkg/runtime/memmove_386.s +++ b/src/pkg/runtime/memmove_386.s @@ -25,7 +25,7 @@ // +build !plan9 -#include "../../cmd/ld/textflag.h" +#include "textflag.h" TEXT runtime·memmove(SB), NOSPLIT, $0-12 MOVL to+0(FP), DI diff --git a/src/pkg/runtime/memmove_amd64.s b/src/pkg/runtime/memmove_amd64.s index 339c5dd41..f96843534 100644 --- a/src/pkg/runtime/memmove_amd64.s +++ b/src/pkg/runtime/memmove_amd64.s @@ -25,7 +25,7 @@ // +build !plan9 -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // void runtime·memmove(void*, void*, uintptr) TEXT runtime·memmove(SB), NOSPLIT, $0-24 diff --git a/src/pkg/runtime/memmove_arm.s b/src/pkg/runtime/memmove_arm.s index 9701dc99f..f187d4267 100644 --- a/src/pkg/runtime/memmove_arm.s +++ b/src/pkg/runtime/memmove_arm.s @@ -23,7 +23,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // TE or TS are spilled to the stack during bulk register moves. TS = 0 diff --git a/src/pkg/runtime/memmove_nacl_amd64p32.s b/src/pkg/runtime/memmove_nacl_amd64p32.s index ba47e8546..373607afe 100644 --- a/src/pkg/runtime/memmove_nacl_amd64p32.s +++ b/src/pkg/runtime/memmove_nacl_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 runtime·memmove(SB), NOSPLIT, $0-12 MOVL to+0(FP), DI diff --git a/src/pkg/runtime/memmove_plan9_386.s b/src/pkg/runtime/memmove_plan9_386.s index 4d5f7c690..025d4ce1b 100644 --- a/src/pkg/runtime/memmove_plan9_386.s +++ b/src/pkg/runtime/memmove_plan9_386.s @@ -23,7 +23,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -#include "../../cmd/ld/textflag.h" +#include "textflag.h" TEXT runtime·memmove(SB), NOSPLIT, $0-12 MOVL to+0(FP), DI diff --git a/src/pkg/runtime/memmove_plan9_amd64.s b/src/pkg/runtime/memmove_plan9_amd64.s index 035d475ac..8e96b8717 100644 --- a/src/pkg/runtime/memmove_plan9_amd64.s +++ b/src/pkg/runtime/memmove_plan9_amd64.s @@ -23,7 +23,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // void runtime·memmove(void*, void*, uintptr) TEXT runtime·memmove(SB), NOSPLIT, $0-24 diff --git a/src/pkg/runtime/mgc0.c b/src/pkg/runtime/mgc0.c index 05e555b8a..55c38a7e5 100644 --- a/src/pkg/runtime/mgc0.c +++ b/src/pkg/runtime/mgc0.c @@ -60,7 +60,7 @@ #include "type.h" #include "typekind.h" #include "funcdata.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" enum { Debug = 0, diff --git a/src/pkg/runtime/msize.c b/src/pkg/runtime/msize.c index 2fbd5e104..7cb65dad0 100644 --- a/src/pkg/runtime/msize.c +++ b/src/pkg/runtime/msize.c @@ -28,7 +28,7 @@ #include "runtime.h" #include "arch_GOARCH.h" #include "malloc.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #pragma dataflag NOPTR int32 runtime·class_to_size[NumSizeClasses]; diff --git a/src/pkg/runtime/os_darwin.c b/src/pkg/runtime/os_darwin.c index 466591877..536f688cf 100644 --- a/src/pkg/runtime/os_darwin.c +++ b/src/pkg/runtime/os_darwin.c @@ -7,7 +7,7 @@ #include "os_GOOS.h" #include "signal_unix.h" #include "stack.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" extern SigTab runtime·sigtab[]; diff --git a/src/pkg/runtime/os_dragonfly.c b/src/pkg/runtime/os_dragonfly.c index 7bde58f75..d470f7c78 100644 --- a/src/pkg/runtime/os_dragonfly.c +++ b/src/pkg/runtime/os_dragonfly.c @@ -7,7 +7,7 @@ #include "os_GOOS.h" #include "signal_unix.h" #include "stack.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" extern SigTab runtime·sigtab[]; extern int32 runtime·sys_umtx_sleep(uint32*, int32, int32); diff --git a/src/pkg/runtime/os_freebsd.c b/src/pkg/runtime/os_freebsd.c index 4c58b531c..aae944ea1 100644 --- a/src/pkg/runtime/os_freebsd.c +++ b/src/pkg/runtime/os_freebsd.c @@ -7,7 +7,7 @@ #include "os_GOOS.h" #include "signal_unix.h" #include "stack.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" extern SigTab runtime·sigtab[]; extern int32 runtime·sys_umtx_op(uint32*, int32, uint32, void*, void*); diff --git a/src/pkg/runtime/os_freebsd_arm.c b/src/pkg/runtime/os_freebsd_arm.c index 1fa235b01..2f2d7767f 100644 --- a/src/pkg/runtime/os_freebsd_arm.c +++ b/src/pkg/runtime/os_freebsd_arm.c @@ -5,7 +5,7 @@ #include "runtime.h" #include "defs_GOOS_GOARCH.h" #include "os_GOOS.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" void runtime·checkgoarm(void) diff --git a/src/pkg/runtime/os_linux.c b/src/pkg/runtime/os_linux.c index 7ab4858d9..66e7bcec0 100644 --- a/src/pkg/runtime/os_linux.c +++ b/src/pkg/runtime/os_linux.c @@ -7,7 +7,7 @@ #include "os_GOOS.h" #include "signal_unix.h" #include "stack.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" extern SigTab runtime·sigtab[]; diff --git a/src/pkg/runtime/os_linux_386.c b/src/pkg/runtime/os_linux_386.c index ad7281464..dc89d04e2 100644 --- a/src/pkg/runtime/os_linux_386.c +++ b/src/pkg/runtime/os_linux_386.c @@ -5,7 +5,7 @@ #include "runtime.h" #include "defs_GOOS_GOARCH.h" #include "os_GOOS.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #define AT_NULL 0 #define AT_RANDOM 25 diff --git a/src/pkg/runtime/os_linux_arm.c b/src/pkg/runtime/os_linux_arm.c index aad08b989..e3eda7c2d 100644 --- a/src/pkg/runtime/os_linux_arm.c +++ b/src/pkg/runtime/os_linux_arm.c @@ -5,7 +5,7 @@ #include "runtime.h" #include "defs_GOOS_GOARCH.h" #include "os_GOOS.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #define AT_NULL 0 #define AT_PLATFORM 15 // introduced in at least 2.6.11 diff --git a/src/pkg/runtime/os_nacl.c b/src/pkg/runtime/os_nacl.c index fba32e568..37a1fcca0 100644 --- a/src/pkg/runtime/os_nacl.c +++ b/src/pkg/runtime/os_nacl.c @@ -6,7 +6,7 @@ #include "defs_GOOS_GOARCH.h" #include "os_GOOS.h" #include "arch_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #include "stack.h" int8 *goos = "nacl"; diff --git a/src/pkg/runtime/os_nacl_arm.c b/src/pkg/runtime/os_nacl_arm.c index c94b2c78a..1248ea644 100644 --- a/src/pkg/runtime/os_nacl_arm.c +++ b/src/pkg/runtime/os_nacl_arm.c @@ -5,7 +5,7 @@ #include "runtime.h" #include "defs_GOOS_GOARCH.h" #include "os_GOOS.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" void runtime·checkgoarm(void) diff --git a/src/pkg/runtime/os_netbsd.c b/src/pkg/runtime/os_netbsd.c index cee96ebed..d6c3bc826 100644 --- a/src/pkg/runtime/os_netbsd.c +++ b/src/pkg/runtime/os_netbsd.c @@ -7,7 +7,7 @@ #include "os_GOOS.h" #include "signal_unix.h" #include "stack.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" enum { diff --git a/src/pkg/runtime/os_netbsd_arm.c b/src/pkg/runtime/os_netbsd_arm.c index e440e7def..9dd4bcdc9 100644 --- a/src/pkg/runtime/os_netbsd_arm.c +++ b/src/pkg/runtime/os_netbsd_arm.c @@ -6,7 +6,7 @@ #include "defs_GOOS_GOARCH.h" #include "os_GOOS.h" #include "signal_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" void runtime·lwp_mcontext_init(McontextT *mc, void *stack, M *mp, G *gp, void (*fn)(void)) diff --git a/src/pkg/runtime/os_openbsd.c b/src/pkg/runtime/os_openbsd.c index 7c9e478e8..59abc97b7 100644 --- a/src/pkg/runtime/os_openbsd.c +++ b/src/pkg/runtime/os_openbsd.c @@ -7,7 +7,7 @@ #include "os_GOOS.h" #include "signal_unix.h" #include "stack.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" enum { diff --git a/src/pkg/runtime/os_plan9.c b/src/pkg/runtime/os_plan9.c index bae4549a6..f82471079 100644 --- a/src/pkg/runtime/os_plan9.c +++ b/src/pkg/runtime/os_plan9.c @@ -5,7 +5,7 @@ #include "runtime.h" #include "os_GOOS.h" #include "arch_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" int8 *goos = "plan9"; extern SigTab runtime·sigtab[]; diff --git a/src/pkg/runtime/os_solaris.c b/src/pkg/runtime/os_solaris.c index c7ec3f212..5e1f7ab07 100644 --- a/src/pkg/runtime/os_solaris.c +++ b/src/pkg/runtime/os_solaris.c @@ -7,7 +7,7 @@ #include "os_GOOS.h" #include "signal_unix.h" #include "stack.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #pragma dynexport runtime·end _end #pragma dynexport runtime·etext _etext diff --git a/src/pkg/runtime/os_windows.c b/src/pkg/runtime/os_windows.c index 9bf6ecbc6..885fe6334 100644 --- a/src/pkg/runtime/os_windows.c +++ b/src/pkg/runtime/os_windows.c @@ -6,7 +6,7 @@ #include "type.h" #include "defs_GOOS_GOARCH.h" #include "os_GOOS.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #pragma dynimport runtime·AddVectoredExceptionHandler AddVectoredExceptionHandler "kernel32.dll" #pragma dynimport runtime·CloseHandle CloseHandle "kernel32.dll" diff --git a/src/pkg/runtime/panic.c b/src/pkg/runtime/panic.c index 72078f434..152c9a3d5 100644 --- a/src/pkg/runtime/panic.c +++ b/src/pkg/runtime/panic.c @@ -6,7 +6,7 @@ #include "arch_GOARCH.h" #include "stack.h" #include "malloc.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // Code related to defer, panic and recover. diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index 3fecfe90e..3c5e244a9 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -10,7 +10,7 @@ #include "race.h" #include "type.h" #include "mgc0.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // Goroutine scheduler // The scheduler's job is to distribute ready-to-run goroutines over worker threads. diff --git a/src/pkg/runtime/race.c b/src/pkg/runtime/race.c index 125309510..9ac73fbcc 100644 --- a/src/pkg/runtime/race.c +++ b/src/pkg/runtime/race.c @@ -11,7 +11,7 @@ #include "race.h" #include "type.h" #include "typekind.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // Race runtime functions called via runtime·racecall. void __tsan_init(void); diff --git a/src/pkg/runtime/race_amd64.s b/src/pkg/runtime/race_amd64.s index a4a9dfeb5..bdea28c7c 100644 --- a/src/pkg/runtime/race_amd64.s +++ b/src/pkg/runtime/race_amd64.s @@ -6,7 +6,7 @@ #include "zasm_GOOS_GOARCH.h" #include "funcdata.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // The following thunks allow calling the gcc-compiled race runtime directly // from Go code without going all the way through cgo. diff --git a/src/pkg/runtime/rt0_android_arm.s b/src/pkg/runtime/rt0_android_arm.s index 3eecbbddc..6b65fb47b 100644 --- a/src/pkg/runtime/rt0_android_arm.s +++ b/src/pkg/runtime/rt0_android_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" TEXT _rt0_arm_android(SB),NOSPLIT,$-4 MOVW (R13), R0 // argc diff --git a/src/pkg/runtime/rt0_darwin_386.s b/src/pkg/runtime/rt0_darwin_386.s index 7fe1df4c9..4c8c92dda 100644 --- a/src/pkg/runtime/rt0_darwin_386.s +++ b/src/pkg/runtime/rt0_darwin_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" TEXT _rt0_386_darwin(SB),NOSPLIT,$8 MOVL 8(SP), AX diff --git a/src/pkg/runtime/rt0_darwin_amd64.s b/src/pkg/runtime/rt0_darwin_amd64.s index ac323c83c..452d85455 100644 --- a/src/pkg/runtime/rt0_darwin_amd64.s +++ b/src/pkg/runtime/rt0_darwin_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" TEXT _rt0_amd64_darwin(SB),NOSPLIT,$-8 LEAQ 8(SP), SI // argv diff --git a/src/pkg/runtime/rt0_dragonfly_386.s b/src/pkg/runtime/rt0_dragonfly_386.s index 9262a0f9e..548ba796a 100644 --- a/src/pkg/runtime/rt0_dragonfly_386.s +++ b/src/pkg/runtime/rt0_dragonfly_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" TEXT _rt0_386_dragonfly(SB),NOSPLIT,$8 MOVL 8(SP), AX diff --git a/src/pkg/runtime/rt0_dragonfly_amd64.s b/src/pkg/runtime/rt0_dragonfly_amd64.s index a83b20e22..fb56618d8 100644 --- a/src/pkg/runtime/rt0_dragonfly_amd64.s +++ b/src/pkg/runtime/rt0_dragonfly_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" TEXT _rt0_amd64_dragonfly(SB),NOSPLIT,$-8 LEAQ 8(DI), SI // argv diff --git a/src/pkg/runtime/rt0_freebsd_386.s b/src/pkg/runtime/rt0_freebsd_386.s index 242b67df5..cd7a915f8 100644 --- a/src/pkg/runtime/rt0_freebsd_386.s +++ b/src/pkg/runtime/rt0_freebsd_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" TEXT _rt0_386_freebsd(SB),NOSPLIT,$8 MOVL 8(SP), AX diff --git a/src/pkg/runtime/rt0_freebsd_amd64.s b/src/pkg/runtime/rt0_freebsd_amd64.s index 729effbdb..7989f7c3e 100644 --- a/src/pkg/runtime/rt0_freebsd_amd64.s +++ b/src/pkg/runtime/rt0_freebsd_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" TEXT _rt0_amd64_freebsd(SB),NOSPLIT,$-8 LEAQ 8(DI), SI // argv diff --git a/src/pkg/runtime/rt0_freebsd_arm.s b/src/pkg/runtime/rt0_freebsd_arm.s index d50c73c23..f31252698 100644 --- a/src/pkg/runtime/rt0_freebsd_arm.s +++ b/src/pkg/runtime/rt0_freebsd_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" // FreeBSD and Linux use the same linkage to main diff --git a/src/pkg/runtime/rt0_linux_386.s b/src/pkg/runtime/rt0_linux_386.s index 285aeed73..74ddc94da 100644 --- a/src/pkg/runtime/rt0_linux_386.s +++ b/src/pkg/runtime/rt0_linux_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" TEXT _rt0_386_linux(SB),NOSPLIT,$8 MOVL 8(SP), AX diff --git a/src/pkg/runtime/rt0_linux_amd64.s b/src/pkg/runtime/rt0_linux_amd64.s index 7f8c79548..985426acc 100644 --- a/src/pkg/runtime/rt0_linux_amd64.s +++ b/src/pkg/runtime/rt0_linux_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" TEXT _rt0_amd64_linux(SB),NOSPLIT,$-8 LEAQ 8(SP), SI // argv diff --git a/src/pkg/runtime/rt0_linux_arm.s b/src/pkg/runtime/rt0_linux_arm.s index 21391c730..8af3d3505 100644 --- a/src/pkg/runtime/rt0_linux_arm.s +++ b/src/pkg/runtime/rt0_linux_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" TEXT _rt0_arm_linux(SB),NOSPLIT,$-4 MOVW (R13), R0 // argc diff --git a/src/pkg/runtime/rt0_nacl_386.s b/src/pkg/runtime/rt0_nacl_386.s index e374bf335..d4ba06306 100644 --- a/src/pkg/runtime/rt0_nacl_386.s +++ b/src/pkg/runtime/rt0_nacl_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" // NaCl entry has: // 0(FP) - arg block == SP+8 diff --git a/src/pkg/runtime/rt0_nacl_amd64p32.s b/src/pkg/runtime/rt0_nacl_amd64p32.s index de08618fc..d8703dc0f 100644 --- a/src/pkg/runtime/rt0_nacl_amd64p32.s +++ b/src/pkg/runtime/rt0_nacl_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" // NaCl entry on 32-bit x86 has DI pointing at the arg block, which contains: // diff --git a/src/pkg/runtime/rt0_nacl_arm.s b/src/pkg/runtime/rt0_nacl_arm.s index 243cb3375..eadb4782d 100644 --- a/src/pkg/runtime/rt0_nacl_arm.s +++ b/src/pkg/runtime/rt0_nacl_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" // NaCl entry has: // 0(FP) - 0 diff --git a/src/pkg/runtime/rt0_netbsd_386.s b/src/pkg/runtime/rt0_netbsd_386.s index f4cc78a1b..70b853253 100644 --- a/src/pkg/runtime/rt0_netbsd_386.s +++ b/src/pkg/runtime/rt0_netbsd_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" TEXT _rt0_386_netbsd(SB),NOSPLIT,$8 MOVL 8(SP), AX diff --git a/src/pkg/runtime/rt0_netbsd_amd64.s b/src/pkg/runtime/rt0_netbsd_amd64.s index e2288dbae..fad56614e 100644 --- a/src/pkg/runtime/rt0_netbsd_amd64.s +++ b/src/pkg/runtime/rt0_netbsd_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" TEXT _rt0_amd64_netbsd(SB),NOSPLIT,$-8 LEAQ 8(SP), SI // argv diff --git a/src/pkg/runtime/rt0_netbsd_arm.s b/src/pkg/runtime/rt0_netbsd_arm.s index 1f649d97c..bad66e06c 100644 --- a/src/pkg/runtime/rt0_netbsd_arm.s +++ b/src/pkg/runtime/rt0_netbsd_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" // FreeBSD/NetBSD and Linux use the same linkage to main diff --git a/src/pkg/runtime/rt0_openbsd_386.s b/src/pkg/runtime/rt0_openbsd_386.s index 35439d0d5..f25d2e1cf 100644 --- a/src/pkg/runtime/rt0_openbsd_386.s +++ b/src/pkg/runtime/rt0_openbsd_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" TEXT _rt0_386_openbsd(SB),NOSPLIT,$8 MOVL 8(SP), AX diff --git a/src/pkg/runtime/rt0_openbsd_amd64.s b/src/pkg/runtime/rt0_openbsd_amd64.s index a394890f9..58fe66639 100644 --- a/src/pkg/runtime/rt0_openbsd_amd64.s +++ b/src/pkg/runtime/rt0_openbsd_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" TEXT _rt0_amd64_openbsd(SB),NOSPLIT,$-8 LEAQ 8(SP), SI // argv diff --git a/src/pkg/runtime/rt0_plan9_386.s b/src/pkg/runtime/rt0_plan9_386.s index 4aaabfaa4..7e2887b85 100644 --- a/src/pkg/runtime/rt0_plan9_386.s +++ b/src/pkg/runtime/rt0_plan9_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" TEXT _rt0_386_plan9(SB),NOSPLIT,$12 MOVL AX, _tos(SB) diff --git a/src/pkg/runtime/rt0_plan9_amd64.s b/src/pkg/runtime/rt0_plan9_amd64.s index 9f20eef60..a372a0ba8 100644 --- a/src/pkg/runtime/rt0_plan9_amd64.s +++ b/src/pkg/runtime/rt0_plan9_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" TEXT _rt0_amd64_plan9(SB),NOSPLIT,$24 MOVQ AX, _tos(SB) diff --git a/src/pkg/runtime/rt0_solaris_amd64.s b/src/pkg/runtime/rt0_solaris_amd64.s index fd0a79cc9..92a9fc295 100644 --- a/src/pkg/runtime/rt0_solaris_amd64.s +++ b/src/pkg/runtime/rt0_solaris_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" TEXT _rt0_amd64_solaris(SB),NOSPLIT,$-8 LEAQ 8(SP), SI // argv diff --git a/src/pkg/runtime/rt0_windows_386.s b/src/pkg/runtime/rt0_windows_386.s index d4008ad5d..00604372f 100644 --- a/src/pkg/runtime/rt0_windows_386.s +++ b/src/pkg/runtime/rt0_windows_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" TEXT _rt0_386_windows(SB),NOSPLIT,$12 MOVL 12(SP), AX diff --git a/src/pkg/runtime/rt0_windows_amd64.s b/src/pkg/runtime/rt0_windows_amd64.s index 0b144717b..890a570d1 100644 --- a/src/pkg/runtime/rt0_windows_amd64.s +++ b/src/pkg/runtime/rt0_windows_amd64.s @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" TEXT _rt0_amd64_windows(SB),NOSPLIT,$-8 LEAQ 8(SP), SI // argv diff --git a/src/pkg/runtime/runtime.c b/src/pkg/runtime/runtime.c index 751181274..d28ee5817 100644 --- a/src/pkg/runtime/runtime.c +++ b/src/pkg/runtime/runtime.c @@ -5,7 +5,7 @@ #include "runtime.h" #include "stack.h" #include "arch_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // Keep a cached value to make gotraceback fast, // since we call it on every call to gentraceback. diff --git a/src/pkg/runtime/softfloat_arm.c b/src/pkg/runtime/softfloat_arm.c index 5e5f4025e..09b0cf20a 100644 --- a/src/pkg/runtime/softfloat_arm.c +++ b/src/pkg/runtime/softfloat_arm.c @@ -7,7 +7,7 @@ // It uses true little-endian doubles, while the 7500 used mixed-endian. #include "runtime.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #define CPSR 14 #define FLAGS_N (1U << 31) diff --git a/src/pkg/runtime/stack.c b/src/pkg/runtime/stack.c index 8456f7936..3993a372e 100644 --- a/src/pkg/runtime/stack.c +++ b/src/pkg/runtime/stack.c @@ -11,7 +11,7 @@ #include "type.h" #include "race.h" #include "mgc0.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" enum { diff --git a/src/pkg/runtime/string.c b/src/pkg/runtime/string.c index 5421b5319..4f25adf8e 100644 --- a/src/pkg/runtime/string.c +++ b/src/pkg/runtime/string.c @@ -6,7 +6,7 @@ #include "arch_GOARCH.h" #include "malloc.h" #include "race.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" String runtime·emptystring; diff --git a/src/pkg/runtime/stubs.goc b/src/pkg/runtime/stubs.goc index f8b2a9f0a..f6bc14f2c 100644 --- a/src/pkg/runtime/stubs.goc +++ b/src/pkg/runtime/stubs.goc @@ -7,7 +7,7 @@ package runtime #include "arch_GOARCH.h" #include "malloc.h" #include "stack.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // This file contains functions called by Go but written // in C. These functions are problematic for the garbage diff --git a/src/pkg/runtime/sys_darwin_386.s b/src/pkg/runtime/sys_darwin_386.s index 1ec694db6..a961c71a8 100644 --- a/src/pkg/runtime/sys_darwin_386.s +++ b/src/pkg/runtime/sys_darwin_386.s @@ -7,7 +7,7 @@ // or /usr/include/sys/syscall.h (on a Mac) for system call numbers. #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // Exit the entire program (like C exit) TEXT runtime·exit(SB),NOSPLIT,$0 diff --git a/src/pkg/runtime/sys_darwin_amd64.s b/src/pkg/runtime/sys_darwin_amd64.s index 5f0d9dfa1..2f98bfb06 100644 --- a/src/pkg/runtime/sys_darwin_amd64.s +++ b/src/pkg/runtime/sys_darwin_amd64.s @@ -12,7 +12,7 @@ // #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // Exit the entire program (like C exit) TEXT runtime·exit(SB),NOSPLIT,$0 diff --git a/src/pkg/runtime/sys_dragonfly_386.s b/src/pkg/runtime/sys_dragonfly_386.s index bd8c8d8f6..dd0e27e26 100644 --- a/src/pkg/runtime/sys_dragonfly_386.s +++ b/src/pkg/runtime/sys_dragonfly_386.s @@ -7,7 +7,7 @@ // #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" TEXT runtime·sys_umtx_sleep(SB),NOSPLIT,$-4 MOVL $469, AX // umtx_sleep diff --git a/src/pkg/runtime/sys_dragonfly_amd64.s b/src/pkg/runtime/sys_dragonfly_amd64.s index 1c279df9c..2c756018c 100644 --- a/src/pkg/runtime/sys_dragonfly_amd64.s +++ b/src/pkg/runtime/sys_dragonfly_amd64.s @@ -7,7 +7,7 @@ // #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" TEXT runtime·sys_umtx_sleep(SB),NOSPLIT,$0 MOVQ addr+0(FP), DI // arg 1 - ptr diff --git a/src/pkg/runtime/sys_freebsd_386.s b/src/pkg/runtime/sys_freebsd_386.s index 929572f07..ffc28560e 100644 --- a/src/pkg/runtime/sys_freebsd_386.s +++ b/src/pkg/runtime/sys_freebsd_386.s @@ -7,7 +7,7 @@ // #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" TEXT runtime·sys_umtx_op(SB),NOSPLIT,$-4 MOVL $454, AX diff --git a/src/pkg/runtime/sys_freebsd_amd64.s b/src/pkg/runtime/sys_freebsd_amd64.s index f1198541d..65f8c1a6e 100644 --- a/src/pkg/runtime/sys_freebsd_amd64.s +++ b/src/pkg/runtime/sys_freebsd_amd64.s @@ -7,7 +7,7 @@ // #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // FreeBSD 8, FreeBSD 9, and older versions that I have checked // do not restore R10 on exit from a "restarted" system call diff --git a/src/pkg/runtime/sys_freebsd_arm.s b/src/pkg/runtime/sys_freebsd_arm.s index da43871b9..d875138b6 100644 --- a/src/pkg/runtime/sys_freebsd_arm.s +++ b/src/pkg/runtime/sys_freebsd_arm.s @@ -7,7 +7,7 @@ // #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // for EABI, as we don't support OABI #define SYS_BASE 0x0 diff --git a/src/pkg/runtime/sys_linux_386.s b/src/pkg/runtime/sys_linux_386.s index 426e05faa..0f6d4bbb5 100644 --- a/src/pkg/runtime/sys_linux_386.s +++ b/src/pkg/runtime/sys_linux_386.s @@ -7,7 +7,7 @@ // #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" TEXT runtime·exit(SB),NOSPLIT,$0 MOVL $252, AX // syscall number diff --git a/src/pkg/runtime/sys_linux_amd64.s b/src/pkg/runtime/sys_linux_amd64.s index 3ce6bfc90..33b91e872 100644 --- a/src/pkg/runtime/sys_linux_amd64.s +++ b/src/pkg/runtime/sys_linux_amd64.s @@ -7,7 +7,7 @@ // #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" TEXT runtime·exit(SB),NOSPLIT,$0-4 MOVL code+0(FP), DI diff --git a/src/pkg/runtime/sys_linux_arm.s b/src/pkg/runtime/sys_linux_arm.s index a2abe8f25..bd285f399 100644 --- a/src/pkg/runtime/sys_linux_arm.s +++ b/src/pkg/runtime/sys_linux_arm.s @@ -7,7 +7,7 @@ // #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // for EABI, as we don't support OABI #define SYS_BASE 0x0 diff --git a/src/pkg/runtime/sys_nacl_386.s b/src/pkg/runtime/sys_nacl_386.s index 5798b1aed..47985f31f 100644 --- a/src/pkg/runtime/sys_nacl_386.s +++ b/src/pkg/runtime/sys_nacl_386.s @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #include "syscall_nacl.h" #define NACL_SYSCALL(code) \ diff --git a/src/pkg/runtime/sys_nacl_amd64p32.s b/src/pkg/runtime/sys_nacl_amd64p32.s index 1fd083718..c30c2a893 100644 --- a/src/pkg/runtime/sys_nacl_amd64p32.s +++ b/src/pkg/runtime/sys_nacl_amd64p32.s @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #include "syscall_nacl.h" #define NACL_SYSCALL(code) \ diff --git a/src/pkg/runtime/sys_nacl_arm.s b/src/pkg/runtime/sys_nacl_arm.s index cc1852220..d354ab483 100644 --- a/src/pkg/runtime/sys_nacl_arm.s +++ b/src/pkg/runtime/sys_nacl_arm.s @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #include "syscall_nacl.h" #define NACL_SYSCALL(code) \ diff --git a/src/pkg/runtime/sys_netbsd_386.s b/src/pkg/runtime/sys_netbsd_386.s index cecc389b5..83a76cb34 100644 --- a/src/pkg/runtime/sys_netbsd_386.s +++ b/src/pkg/runtime/sys_netbsd_386.s @@ -7,7 +7,7 @@ // #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // Exit the entire program (like C exit) TEXT runtime·exit(SB),NOSPLIT,$-4 diff --git a/src/pkg/runtime/sys_netbsd_amd64.s b/src/pkg/runtime/sys_netbsd_amd64.s index 5b46dbe70..eb9766d3f 100644 --- a/src/pkg/runtime/sys_netbsd_amd64.s +++ b/src/pkg/runtime/sys_netbsd_amd64.s @@ -7,7 +7,7 @@ // #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // int32 lwp_create(void *context, uintptr flags, void *lwpid) TEXT runtime·lwp_create(SB),NOSPLIT,$0 diff --git a/src/pkg/runtime/sys_netbsd_arm.s b/src/pkg/runtime/sys_netbsd_arm.s index bf133a210..039a0832e 100644 --- a/src/pkg/runtime/sys_netbsd_arm.s +++ b/src/pkg/runtime/sys_netbsd_arm.s @@ -7,7 +7,7 @@ // #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // Exit the entire program (like C exit) TEXT runtime·exit(SB),NOSPLIT,$-4 diff --git a/src/pkg/runtime/sys_openbsd_386.s b/src/pkg/runtime/sys_openbsd_386.s index d836a1f9e..12d9c5c6b 100644 --- a/src/pkg/runtime/sys_openbsd_386.s +++ b/src/pkg/runtime/sys_openbsd_386.s @@ -7,7 +7,7 @@ // #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #define CLOCK_MONOTONIC $3 diff --git a/src/pkg/runtime/sys_openbsd_amd64.s b/src/pkg/runtime/sys_openbsd_amd64.s index e9371c3b6..4e9db2390 100644 --- a/src/pkg/runtime/sys_openbsd_amd64.s +++ b/src/pkg/runtime/sys_openbsd_amd64.s @@ -7,7 +7,7 @@ // #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #define CLOCK_MONOTONIC $3 diff --git a/src/pkg/runtime/sys_plan9_386.s b/src/pkg/runtime/sys_plan9_386.s index 43fb367ed..dfa09613e 100644 --- a/src/pkg/runtime/sys_plan9_386.s +++ b/src/pkg/runtime/sys_plan9_386.s @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // setldt(int entry, int address, int limit) TEXT runtime·setldt(SB),NOSPLIT,$0 diff --git a/src/pkg/runtime/sys_plan9_amd64.s b/src/pkg/runtime/sys_plan9_amd64.s index 257f405c8..08ddc3ffa 100644 --- a/src/pkg/runtime/sys_plan9_amd64.s +++ b/src/pkg/runtime/sys_plan9_amd64.s @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // setldt(int entry, int address, int limit) TEXT runtime·setldt(SB),NOSPLIT,$0 diff --git a/src/pkg/runtime/sys_solaris_amd64.s b/src/pkg/runtime/sys_solaris_amd64.s index 8506e9939..2055d6c80 100644 --- a/src/pkg/runtime/sys_solaris_amd64.s +++ b/src/pkg/runtime/sys_solaris_amd64.s @@ -7,7 +7,7 @@ // #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // This is needed by asm_amd64.s TEXT runtime·settls(SB),NOSPLIT,$8 diff --git a/src/pkg/runtime/sys_windows_386.s b/src/pkg/runtime/sys_windows_386.s index f9a456a2c..f4d561fee 100644 --- a/src/pkg/runtime/sys_windows_386.s +++ b/src/pkg/runtime/sys_windows_386.s @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // void runtime·asmstdcall(void *c); TEXT runtime·asmstdcall(SB),NOSPLIT,$0 diff --git a/src/pkg/runtime/sys_windows_amd64.s b/src/pkg/runtime/sys_windows_amd64.s index 7e59dfc50..e5890e04a 100644 --- a/src/pkg/runtime/sys_windows_amd64.s +++ b/src/pkg/runtime/sys_windows_amd64.s @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // maxargs should be divisible by 2, as Windows stack // must be kept 16-byte aligned on syscall entry. diff --git a/src/pkg/runtime/syscall_solaris.goc b/src/pkg/runtime/syscall_solaris.goc index 21bcce4d1..935a2f6cf 100644 --- a/src/pkg/runtime/syscall_solaris.goc +++ b/src/pkg/runtime/syscall_solaris.goc @@ -7,7 +7,7 @@ package syscall #include "defs_GOOS_GOARCH.h" #include "os_GOOS.h" #include "cgocall.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #pragma dynimport libc·chdir chdir "libc.so" #pragma dynimport libc·chroot chroot "libc.so" diff --git a/src/pkg/runtime/thunk.s b/src/pkg/runtime/thunk.s index 0c057a3e2..babc92768 100644 --- a/src/pkg/runtime/thunk.s +++ b/src/pkg/runtime/thunk.s @@ -5,7 +5,7 @@ // This file exposes various internal runtime functions to other packages in std lib. #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" #ifdef GOARCH_arm #define JMP B diff --git a/src/pkg/runtime/tls_arm.s b/src/pkg/runtime/tls_arm.s index 37edfa968..1b1cbc978 100644 --- a/src/pkg/runtime/tls_arm.s +++ b/src/pkg/runtime/tls_arm.s @@ -4,7 +4,7 @@ #include "zasm_GOOS_GOARCH.h" #include "funcdata.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" // We have to resort to TLS variable to save g(R10). // One reason is that external code might trigger diff --git a/src/pkg/runtime/vlop_386.s b/src/pkg/runtime/vlop_386.s index 7af67c987..ce8e7d064 100644 --- a/src/pkg/runtime/vlop_386.s +++ b/src/pkg/runtime/vlop_386.s @@ -23,7 +23,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -#include "../../cmd/ld/textflag.h" +#include "textflag.h" /* * C runtime for 64-bit divide. diff --git a/src/pkg/runtime/vlop_arm.s b/src/pkg/runtime/vlop_arm.s index 0953deee7..6abcabad2 100644 --- a/src/pkg/runtime/vlop_arm.s +++ b/src/pkg/runtime/vlop_arm.s @@ -24,7 +24,7 @@ // THE SOFTWARE. #include "zasm_GOOS_GOARCH.h" -#include "../../cmd/ld/textflag.h" +#include "textflag.h" arg=0 diff --git a/src/pkg/runtime/vlrt.c b/src/pkg/runtime/vlrt.c index 486555dda..cb0d14796 100644 --- a/src/pkg/runtime/vlrt.c +++ b/src/pkg/runtime/vlrt.c @@ -25,7 +25,7 @@ // +build arm 386 -#include "../../cmd/ld/textflag.h" +#include "textflag.h" /* * C runtime for 64-bit divide, others. |