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 @@
#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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -5,7 +5,7 @@
// +build amd64 amd64p32
#include "runtime.h"
#include "../../cmd/ld/textflag.h"
#include "textflag.h"
#pragma textflag NOSPLIT
uint32
......
......@@ -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[];
......
......@@ -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
......
......@@ -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*
......
......@@ -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
{
......
......@@ -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
{
......
......@@ -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
{
......
......@@ -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
{
......
......@@ -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 };
......
......@@ -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
{
......
......@@ -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,
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -60,7 +60,7 @@
#include "type.h"
#include "typekind.h"
#include "funcdata.h"
#include "../../cmd/ld/textflag.h"
#include "textflag.h"
enum {
Debug = 0,
......
......@@ -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];
......
......@@ -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[];
......
......@@ -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);
......
......@@ -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*);
......
......@@ -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)
......
......@@ -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[];
......
......@@ -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
......
......@@ -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
......
......@@ -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";
......
......@@ -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)
......
......@@ -7,7 +7,7 @@
#include "os_GOOS.h"
#include "signal_unix.h"
#include "stack.h"
#include "../../cmd/ld/textflag.h"
#include "textflag.h"
enum
{
......
......@@ -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))
......
......@@ -7,7 +7,7 @@
#include "os_GOOS.h"
#include "signal_unix.h"
#include "stack.h"
#include "../../cmd/ld/textflag.h"
#include "textflag.h"
enum
{
......
......@@ -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[];
......
......@@ -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
......
......@@ -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"
......
......@@ -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.
......
......@@ -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.
......
......@@ -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);
......
......@@ -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.
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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:
//
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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)
......
......@@ -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)
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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.
......
......@@ -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)
......
......@@ -11,7 +11,7 @@
#include "type.h"
#include "race.h"
#include "mgc0.h"
#include "../../cmd/ld/textflag.h"
#include "textflag.h"
enum
{
......
......@@ -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;
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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) \
......
......@@ -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) \
......
......@@ -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) \
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -7,7 +7,7 @@
//
#include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h"
#include "textflag.h"
#define CLOCK_MONOTONIC $3
......
......@@ -7,7 +7,7 @@
//
#include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h"
#include "textflag.h"
#define CLOCK_MONOTONIC $3
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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.
......
......@@ -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"
......
......@@ -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
......
......@@ -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
......
......@@ -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.
......
......@@ -24,7 +24,7 @@
// THE SOFTWARE.
#include "zasm_GOOS_GOARCH.h"
#include "../../cmd/ld/textflag.h"
#include "textflag.h"
arg=0
......
......@@ -25,7 +25,7 @@
// +build arm 386
#include "../../cmd/ld/textflag.h"
#include "textflag.h"
/*
* C runtime for 64-bit divide, others.
......
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