Commit cb040d59 authored by Russ Cox's avatar Russ Cox

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://golang.org/cl/132600043
parent d16a2ad0
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "funcdata.h" #include "funcdata.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT runtime·rt0_go(SB),NOSPLIT,$0 TEXT runtime·rt0_go(SB),NOSPLIT,$0
// copy arguments forward on an even stack // copy arguments forward on an even stack
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "funcdata.h" #include "funcdata.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT runtime·rt0_go(SB),NOSPLIT,$0 TEXT runtime·rt0_go(SB),NOSPLIT,$0
// copy arguments forward on an even stack // copy arguments forward on an even stack
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "funcdata.h" #include "funcdata.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT runtime·rt0_go(SB),NOSPLIT,$0 TEXT runtime·rt0_go(SB),NOSPLIT,$0
// copy arguments forward on an even stack // copy arguments forward on an even stack
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "funcdata.h" #include "funcdata.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// using frame size $-4 means do not save LR on stack. // using frame size $-4 means do not save LR on stack.
TEXT runtime·rt0_go(SB),NOSPLIT,$-4 TEXT runtime·rt0_go(SB),NOSPLIT,$-4
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#pragma textflag NOSPLIT #pragma textflag NOSPLIT
uint32 uint32
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// +build amd64 amd64p32 // +build amd64 amd64p32
#include "runtime.h" #include "runtime.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#pragma textflag NOSPLIT #pragma textflag NOSPLIT
uint32 uint32
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "typekind.h" #include "typekind.h"
#include "funcdata.h" #include "funcdata.h"
#include "zaexperiment.h" #include "zaexperiment.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
extern byte runtime·data[]; extern byte runtime·data[];
extern byte runtime·edata[]; extern byte runtime·edata[];
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include "typekind.h" #include "typekind.h"
#include "race.h" #include "race.h"
#include "stack.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. // Mark mheap as 'no pointers', it does not contain interesting pointers but occupies ~45K.
#pragma dataflag NOPTR #pragma dataflag NOPTR
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "defs_GOOS_GOARCH.h" #include "defs_GOOS_GOARCH.h"
#include "os_GOOS.h" #include "os_GOOS.h"
#include "malloc.h" #include "malloc.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#pragma textflag NOSPLIT #pragma textflag NOSPLIT
void* void*
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "defs_GOOS_GOARCH.h" #include "defs_GOOS_GOARCH.h"
#include "os_GOOS.h" #include "os_GOOS.h"
#include "malloc.h" #include "malloc.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
enum enum
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "defs_GOOS_GOARCH.h" #include "defs_GOOS_GOARCH.h"
#include "os_GOOS.h" #include "os_GOOS.h"
#include "malloc.h" #include "malloc.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
enum enum
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "defs_GOOS_GOARCH.h" #include "defs_GOOS_GOARCH.h"
#include "os_GOOS.h" #include "os_GOOS.h"
#include "malloc.h" #include "malloc.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
enum enum
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "defs_GOOS_GOARCH.h" #include "defs_GOOS_GOARCH.h"
#include "os_GOOS.h" #include "os_GOOS.h"
#include "malloc.h" #include "malloc.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
enum enum
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "arch_GOARCH.h" #include "arch_GOARCH.h"
#include "malloc.h" #include "malloc.h"
#include "os_GOOS.h" #include "os_GOOS.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
extern byte runtime·end[]; extern byte runtime·end[];
static byte *bloc = { runtime·end }; static byte *bloc = { runtime·end };
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "defs_GOOS_GOARCH.h" #include "defs_GOOS_GOARCH.h"
#include "os_GOOS.h" #include "os_GOOS.h"
#include "malloc.h" #include "malloc.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
enum enum
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "os_GOOS.h" #include "os_GOOS.h"
#include "defs_GOOS_GOARCH.h" #include "defs_GOOS_GOARCH.h"
#include "malloc.h" #include "malloc.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
enum { enum {
MEM_COMMIT = 0x1000, MEM_COMMIT = 0x1000,
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// +build !plan9 // +build !plan9
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// void runtime·memclr(void*, uintptr) // void runtime·memclr(void*, uintptr)
TEXT runtime·memclr(SB), NOSPLIT, $0-8 TEXT runtime·memclr(SB), NOSPLIT, $0-8
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// +build !plan9 // +build !plan9
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// void runtime·memclr(void*, uintptr) // void runtime·memclr(void*, uintptr)
TEXT runtime·memclr(SB), NOSPLIT, $0-16 TEXT runtime·memclr(SB), NOSPLIT, $0-16
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE. // THE SOFTWARE.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TO = 8 TO = 8
TOE = 11 TOE = 11
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// void runtime·memclr(void*, uintptr) // void runtime·memclr(void*, uintptr)
TEXT runtime·memclr(SB), NOSPLIT, $0-8 TEXT runtime·memclr(SB), NOSPLIT, $0-8
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// void runtime·memclr(void*, uintptr) // void runtime·memclr(void*, uintptr)
TEXT runtime·memclr(SB),NOSPLIT,$0-16 TEXT runtime·memclr(SB),NOSPLIT,$0-16
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
// +build !plan9 // +build !plan9
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT runtime·memmove(SB), NOSPLIT, $0-12 TEXT runtime·memmove(SB), NOSPLIT, $0-12
MOVL to+0(FP), DI MOVL to+0(FP), DI
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
// +build !plan9 // +build !plan9
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// void runtime·memmove(void*, void*, uintptr) // void runtime·memmove(void*, void*, uintptr)
TEXT runtime·memmove(SB), NOSPLIT, $0-24 TEXT runtime·memmove(SB), NOSPLIT, $0-24
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE. // THE SOFTWARE.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// TE or TS are spilled to the stack during bulk register moves. // TE or TS are spilled to the stack during bulk register moves.
TS = 0 TS = 0
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT runtime·memmove(SB), NOSPLIT, $0-12 TEXT runtime·memmove(SB), NOSPLIT, $0-12
MOVL to+0(FP), DI MOVL to+0(FP), DI
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE. // THE SOFTWARE.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT runtime·memmove(SB), NOSPLIT, $0-12 TEXT runtime·memmove(SB), NOSPLIT, $0-12
MOVL to+0(FP), DI MOVL to+0(FP), DI
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE. // THE SOFTWARE.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// void runtime·memmove(void*, void*, uintptr) // void runtime·memmove(void*, void*, uintptr)
TEXT runtime·memmove(SB), NOSPLIT, $0-24 TEXT runtime·memmove(SB), NOSPLIT, $0-24
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
#include "type.h" #include "type.h"
#include "typekind.h" #include "typekind.h"
#include "funcdata.h" #include "funcdata.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
enum { enum {
Debug = 0, Debug = 0,
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "runtime.h" #include "runtime.h"
#include "arch_GOARCH.h" #include "arch_GOARCH.h"
#include "malloc.h" #include "malloc.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#pragma dataflag NOPTR #pragma dataflag NOPTR
int32 runtime·class_to_size[NumSizeClasses]; int32 runtime·class_to_size[NumSizeClasses];
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "os_GOOS.h" #include "os_GOOS.h"
#include "signal_unix.h" #include "signal_unix.h"
#include "stack.h" #include "stack.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
extern SigTab runtime·sigtab[]; extern SigTab runtime·sigtab[];
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "os_GOOS.h" #include "os_GOOS.h"
#include "signal_unix.h" #include "signal_unix.h"
#include "stack.h" #include "stack.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
extern SigTab runtime·sigtab[]; extern SigTab runtime·sigtab[];
extern int32 runtime·sys_umtx_sleep(uint32*, int32, int32); extern int32 runtime·sys_umtx_sleep(uint32*, int32, int32);
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "os_GOOS.h" #include "os_GOOS.h"
#include "signal_unix.h" #include "signal_unix.h"
#include "stack.h" #include "stack.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
extern SigTab runtime·sigtab[]; extern SigTab runtime·sigtab[];
extern int32 runtime·sys_umtx_op(uint32*, int32, uint32, void*, void*); extern int32 runtime·sys_umtx_op(uint32*, int32, uint32, void*, void*);
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include "runtime.h" #include "runtime.h"
#include "defs_GOOS_GOARCH.h" #include "defs_GOOS_GOARCH.h"
#include "os_GOOS.h" #include "os_GOOS.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
void void
runtime·checkgoarm(void) runtime·checkgoarm(void)
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "os_GOOS.h" #include "os_GOOS.h"
#include "signal_unix.h" #include "signal_unix.h"
#include "stack.h" #include "stack.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
extern SigTab runtime·sigtab[]; extern SigTab runtime·sigtab[];
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include "runtime.h" #include "runtime.h"
#include "defs_GOOS_GOARCH.h" #include "defs_GOOS_GOARCH.h"
#include "os_GOOS.h" #include "os_GOOS.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#define AT_NULL 0 #define AT_NULL 0
#define AT_RANDOM 25 #define AT_RANDOM 25
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include "runtime.h" #include "runtime.h"
#include "defs_GOOS_GOARCH.h" #include "defs_GOOS_GOARCH.h"
#include "os_GOOS.h" #include "os_GOOS.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#define AT_NULL 0 #define AT_NULL 0
#define AT_PLATFORM 15 // introduced in at least 2.6.11 #define AT_PLATFORM 15 // introduced in at least 2.6.11
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "defs_GOOS_GOARCH.h" #include "defs_GOOS_GOARCH.h"
#include "os_GOOS.h" #include "os_GOOS.h"
#include "arch_GOARCH.h" #include "arch_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#include "stack.h" #include "stack.h"
int8 *goos = "nacl"; int8 *goos = "nacl";
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include "runtime.h" #include "runtime.h"
#include "defs_GOOS_GOARCH.h" #include "defs_GOOS_GOARCH.h"
#include "os_GOOS.h" #include "os_GOOS.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
void void
runtime·checkgoarm(void) runtime·checkgoarm(void)
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "os_GOOS.h" #include "os_GOOS.h"
#include "signal_unix.h" #include "signal_unix.h"
#include "stack.h" #include "stack.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
enum enum
{ {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "defs_GOOS_GOARCH.h" #include "defs_GOOS_GOARCH.h"
#include "os_GOOS.h" #include "os_GOOS.h"
#include "signal_GOOS_GOARCH.h" #include "signal_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
void void
runtime·lwp_mcontext_init(McontextT *mc, void *stack, M *mp, G *gp, void (*fn)(void)) runtime·lwp_mcontext_init(McontextT *mc, void *stack, M *mp, G *gp, void (*fn)(void))
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "os_GOOS.h" #include "os_GOOS.h"
#include "signal_unix.h" #include "signal_unix.h"
#include "stack.h" #include "stack.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
enum enum
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include "runtime.h" #include "runtime.h"
#include "os_GOOS.h" #include "os_GOOS.h"
#include "arch_GOARCH.h" #include "arch_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
int8 *goos = "plan9"; int8 *goos = "plan9";
extern SigTab runtime·sigtab[]; extern SigTab runtime·sigtab[];
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "os_GOOS.h" #include "os_GOOS.h"
#include "signal_unix.h" #include "signal_unix.h"
#include "stack.h" #include "stack.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#pragma dynexport runtime·end _end #pragma dynexport runtime·end _end
#pragma dynexport runtime·etext _etext #pragma dynexport runtime·etext _etext
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "type.h" #include "type.h"
#include "defs_GOOS_GOARCH.h" #include "defs_GOOS_GOARCH.h"
#include "os_GOOS.h" #include "os_GOOS.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#pragma dynimport runtime·AddVectoredExceptionHandler AddVectoredExceptionHandler "kernel32.dll" #pragma dynimport runtime·AddVectoredExceptionHandler AddVectoredExceptionHandler "kernel32.dll"
#pragma dynimport runtime·CloseHandle CloseHandle "kernel32.dll" #pragma dynimport runtime·CloseHandle CloseHandle "kernel32.dll"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "arch_GOARCH.h" #include "arch_GOARCH.h"
#include "stack.h" #include "stack.h"
#include "malloc.h" #include "malloc.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// Code related to defer, panic and recover. // Code related to defer, panic and recover.
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "race.h" #include "race.h"
#include "type.h" #include "type.h"
#include "mgc0.h" #include "mgc0.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// Goroutine scheduler // Goroutine scheduler
// The scheduler's job is to distribute ready-to-run goroutines over worker threads. // The scheduler's job is to distribute ready-to-run goroutines over worker threads.
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "race.h" #include "race.h"
#include "type.h" #include "type.h"
#include "typekind.h" #include "typekind.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// Race runtime functions called via runtime·racecall. // Race runtime functions called via runtime·racecall.
void __tsan_init(void); void __tsan_init(void);
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "funcdata.h" #include "funcdata.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// The following thunks allow calling the gcc-compiled race runtime directly // The following thunks allow calling the gcc-compiled race runtime directly
// from Go code without going all the way through cgo. // from Go code without going all the way through cgo.
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_arm_android(SB),NOSPLIT,$-4 TEXT _rt0_arm_android(SB),NOSPLIT,$-4
MOVW (R13), R0 // argc MOVW (R13), R0 // argc
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_386_darwin(SB),NOSPLIT,$8 TEXT _rt0_386_darwin(SB),NOSPLIT,$8
MOVL 8(SP), AX MOVL 8(SP), AX
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_amd64_darwin(SB),NOSPLIT,$-8 TEXT _rt0_amd64_darwin(SB),NOSPLIT,$-8
LEAQ 8(SP), SI // argv LEAQ 8(SP), SI // argv
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_386_dragonfly(SB),NOSPLIT,$8 TEXT _rt0_386_dragonfly(SB),NOSPLIT,$8
MOVL 8(SP), AX MOVL 8(SP), AX
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_amd64_dragonfly(SB),NOSPLIT,$-8 TEXT _rt0_amd64_dragonfly(SB),NOSPLIT,$-8
LEAQ 8(DI), SI // argv LEAQ 8(DI), SI // argv
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_386_freebsd(SB),NOSPLIT,$8 TEXT _rt0_386_freebsd(SB),NOSPLIT,$8
MOVL 8(SP), AX MOVL 8(SP), AX
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_amd64_freebsd(SB),NOSPLIT,$-8 TEXT _rt0_amd64_freebsd(SB),NOSPLIT,$-8
LEAQ 8(DI), SI // argv LEAQ 8(DI), SI // argv
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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 // FreeBSD and Linux use the same linkage to main
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_386_linux(SB),NOSPLIT,$8 TEXT _rt0_386_linux(SB),NOSPLIT,$8
MOVL 8(SP), AX MOVL 8(SP), AX
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_amd64_linux(SB),NOSPLIT,$-8 TEXT _rt0_amd64_linux(SB),NOSPLIT,$-8
LEAQ 8(SP), SI // argv LEAQ 8(SP), SI // argv
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_arm_linux(SB),NOSPLIT,$-4 TEXT _rt0_arm_linux(SB),NOSPLIT,$-4
MOVW (R13), R0 // argc MOVW (R13), R0 // argc
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// NaCl entry has: // NaCl entry has:
// 0(FP) - arg block == SP+8 // 0(FP) - arg block == SP+8
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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: // NaCl entry on 32-bit x86 has DI pointing at the arg block, which contains:
// //
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// NaCl entry has: // NaCl entry has:
// 0(FP) - 0 // 0(FP) - 0
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_386_netbsd(SB),NOSPLIT,$8 TEXT _rt0_386_netbsd(SB),NOSPLIT,$8
MOVL 8(SP), AX MOVL 8(SP), AX
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_amd64_netbsd(SB),NOSPLIT,$-8 TEXT _rt0_amd64_netbsd(SB),NOSPLIT,$-8
LEAQ 8(SP), SI // argv LEAQ 8(SP), SI // argv
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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 // FreeBSD/NetBSD and Linux use the same linkage to main
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_386_openbsd(SB),NOSPLIT,$8 TEXT _rt0_386_openbsd(SB),NOSPLIT,$8
MOVL 8(SP), AX MOVL 8(SP), AX
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_amd64_openbsd(SB),NOSPLIT,$-8 TEXT _rt0_amd64_openbsd(SB),NOSPLIT,$-8
LEAQ 8(SP), SI // argv LEAQ 8(SP), SI // argv
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_386_plan9(SB),NOSPLIT,$12 TEXT _rt0_386_plan9(SB),NOSPLIT,$12
MOVL AX, _tos(SB) MOVL AX, _tos(SB)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_amd64_plan9(SB),NOSPLIT,$24 TEXT _rt0_amd64_plan9(SB),NOSPLIT,$24
MOVQ AX, _tos(SB) MOVQ AX, _tos(SB)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_amd64_solaris(SB),NOSPLIT,$-8 TEXT _rt0_amd64_solaris(SB),NOSPLIT,$-8
LEAQ 8(SP), SI // argv LEAQ 8(SP), SI // argv
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_386_windows(SB),NOSPLIT,$12 TEXT _rt0_386_windows(SB),NOSPLIT,$12
MOVL 12(SP), AX MOVL 12(SP), AX
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT _rt0_amd64_windows(SB),NOSPLIT,$-8 TEXT _rt0_amd64_windows(SB),NOSPLIT,$-8
LEAQ 8(SP), SI // argv LEAQ 8(SP), SI // argv
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include "runtime.h" #include "runtime.h"
#include "stack.h" #include "stack.h"
#include "arch_GOARCH.h" #include "arch_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// Keep a cached value to make gotraceback fast, // Keep a cached value to make gotraceback fast,
// since we call it on every call to gentraceback. // since we call it on every call to gentraceback.
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// It uses true little-endian doubles, while the 7500 used mixed-endian. // It uses true little-endian doubles, while the 7500 used mixed-endian.
#include "runtime.h" #include "runtime.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#define CPSR 14 #define CPSR 14
#define FLAGS_N (1U << 31) #define FLAGS_N (1U << 31)
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "type.h" #include "type.h"
#include "race.h" #include "race.h"
#include "mgc0.h" #include "mgc0.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
enum enum
{ {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "arch_GOARCH.h" #include "arch_GOARCH.h"
#include "malloc.h" #include "malloc.h"
#include "race.h" #include "race.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
String runtime·emptystring; String runtime·emptystring;
......
...@@ -7,7 +7,7 @@ package runtime ...@@ -7,7 +7,7 @@ package runtime
#include "arch_GOARCH.h" #include "arch_GOARCH.h"
#include "malloc.h" #include "malloc.h"
#include "stack.h" #include "stack.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// This file contains functions called by Go but written // This file contains functions called by Go but written
// in C. These functions are problematic for the garbage // in C. These functions are problematic for the garbage
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// or /usr/include/sys/syscall.h (on a Mac) for system call numbers. // or /usr/include/sys/syscall.h (on a Mac) for system call numbers.
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// Exit the entire program (like C exit) // Exit the entire program (like C exit)
TEXT runtime·exit(SB),NOSPLIT,$0 TEXT runtime·exit(SB),NOSPLIT,$0
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// //
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// Exit the entire program (like C exit) // Exit the entire program (like C exit)
TEXT runtime·exit(SB),NOSPLIT,$0 TEXT runtime·exit(SB),NOSPLIT,$0
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// //
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT runtime·sys_umtx_sleep(SB),NOSPLIT,$-4 TEXT runtime·sys_umtx_sleep(SB),NOSPLIT,$-4
MOVL $469, AX // umtx_sleep MOVL $469, AX // umtx_sleep
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// //
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT runtime·sys_umtx_sleep(SB),NOSPLIT,$0 TEXT runtime·sys_umtx_sleep(SB),NOSPLIT,$0
MOVQ addr+0(FP), DI // arg 1 - ptr MOVQ addr+0(FP), DI // arg 1 - ptr
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// //
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT runtime·sys_umtx_op(SB),NOSPLIT,$-4 TEXT runtime·sys_umtx_op(SB),NOSPLIT,$-4
MOVL $454, AX MOVL $454, AX
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// //
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// FreeBSD 8, FreeBSD 9, and older versions that I have checked // FreeBSD 8, FreeBSD 9, and older versions that I have checked
// do not restore R10 on exit from a "restarted" system call // do not restore R10 on exit from a "restarted" system call
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// //
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// for EABI, as we don't support OABI // for EABI, as we don't support OABI
#define SYS_BASE 0x0 #define SYS_BASE 0x0
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// //
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT runtime·exit(SB),NOSPLIT,$0 TEXT runtime·exit(SB),NOSPLIT,$0
MOVL $252, AX // syscall number MOVL $252, AX // syscall number
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// //
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
TEXT runtime·exit(SB),NOSPLIT,$0-4 TEXT runtime·exit(SB),NOSPLIT,$0-4
MOVL code+0(FP), DI MOVL code+0(FP), DI
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// //
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// for EABI, as we don't support OABI // for EABI, as we don't support OABI
#define SYS_BASE 0x0 #define SYS_BASE 0x0
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#include "syscall_nacl.h" #include "syscall_nacl.h"
#define NACL_SYSCALL(code) \ #define NACL_SYSCALL(code) \
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#include "syscall_nacl.h" #include "syscall_nacl.h"
#define NACL_SYSCALL(code) \ #define NACL_SYSCALL(code) \
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#include "syscall_nacl.h" #include "syscall_nacl.h"
#define NACL_SYSCALL(code) \ #define NACL_SYSCALL(code) \
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// //
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// Exit the entire program (like C exit) // Exit the entire program (like C exit)
TEXT runtime·exit(SB),NOSPLIT,$-4 TEXT runtime·exit(SB),NOSPLIT,$-4
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// //
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// int32 lwp_create(void *context, uintptr flags, void *lwpid) // int32 lwp_create(void *context, uintptr flags, void *lwpid)
TEXT runtime·lwp_create(SB),NOSPLIT,$0 TEXT runtime·lwp_create(SB),NOSPLIT,$0
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// //
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// Exit the entire program (like C exit) // Exit the entire program (like C exit)
TEXT runtime·exit(SB),NOSPLIT,$-4 TEXT runtime·exit(SB),NOSPLIT,$-4
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// //
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#define CLOCK_MONOTONIC $3 #define CLOCK_MONOTONIC $3
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// //
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
#define CLOCK_MONOTONIC $3 #define CLOCK_MONOTONIC $3
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// setldt(int entry, int address, int limit) // setldt(int entry, int address, int limit)
TEXT runtime·setldt(SB),NOSPLIT,$0 TEXT runtime·setldt(SB),NOSPLIT,$0
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// setldt(int entry, int address, int limit) // setldt(int entry, int address, int limit)
TEXT runtime·setldt(SB),NOSPLIT,$0 TEXT runtime·setldt(SB),NOSPLIT,$0
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// //
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// This is needed by asm_amd64.s // This is needed by asm_amd64.s
TEXT runtime·settls(SB),NOSPLIT,$8 TEXT runtime·settls(SB),NOSPLIT,$8
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// void runtime·asmstdcall(void *c); // void runtime·asmstdcall(void *c);
TEXT runtime·asmstdcall(SB),NOSPLIT,$0 TEXT runtime·asmstdcall(SB),NOSPLIT,$0
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "zasm_GOOS_GOARCH.h" #include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h" #include "textflag.h"
// maxargs should be divisible by 2, as Windows stack // maxargs should be divisible by 2, as Windows stack
// must be kept 16-byte aligned on syscall entry. // must be kept 16-byte aligned on syscall entry.
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment