]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: more NOPTR
authorRuss Cox <rsc@golang.org>
Wed, 24 Sep 2014 21:50:44 +0000 (17:50 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 24 Sep 2014 21:50:44 +0000 (17:50 -0400)
Fixes (or makes better) various builds.

TBR=iant
CC=golang-codereviews
https://golang.org/cl/146280043

src/runtime/cgo/dragonfly.c
src/runtime/cgo/freebsd.c
src/runtime/cgo/netbsd.c
src/runtime/cgo/openbsd.c
src/runtime/os_windows.c
src/runtime/rt0_windows_386.s
src/runtime/rt0_windows_amd64.s

index acf53e265568cd3c40e06ef19265d730d0e97cd6..3c95ff354e7f9451f5658b15b39736f82399b28f 100644 (file)
@@ -2,11 +2,15 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include "textflag.h"
+
 // Supply environ and __progname, because we don't
 // link against the standard DragonFly crt0.o and the
 // libc dynamic library needs them.
 
+#pragma dataflag NOPTR
 char *environ[1];
+#pragma dataflag NOPTR
 char *__progname;
 
 #pragma dynexport environ environ
index dfcfa3a21394f2871a90bece204bbeb83e319666..aefc481e64cc331652a209be064a3194a20a309d 100644 (file)
@@ -2,11 +2,15 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include "textflag.h"
+
 // Supply environ and __progname, because we don't
 // link against the standard FreeBSD crt0.o and the
 // libc dynamic library needs them.
 
+#pragma dataflag NOPTR
 char *environ[1];
+#pragma dataflag NOPTR
 char *__progname;
 
 #pragma dynexport environ environ
index b6403f686c6deddea9e05604f67c428697d1cd96..de38bb7707888161237c726313a7296ee7ee2352 100644 (file)
@@ -2,11 +2,15 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include "textflag.h"
+
 // Supply environ and __progname, because we don't
 // link against the standard NetBSD crt0.o and the
 // libc dynamic library needs them.
 
+#pragma dataflag NOPTR
 char *environ[1];
+#pragma dataflag NOPTR
 char *__progname;
 
 #pragma dynexport environ environ
index 84e9f9efff80e7bb5e14b56dd70bb7c538f12daf..7c2b6c17378113705ef90c9688988c34ef9c12f2 100644 (file)
@@ -2,11 +2,15 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include "textflag.h"
+
 // Supply environ, __progname and __guard_local, because
 // we don't link against the standard OpenBSD crt0.o and
 // the libc dynamic library needs them.
 
+#pragma dataflag NOPTR
 char *environ[1];
+#pragma dataflag NOPTR
 char *__progname;
 long __guard_local;
 
index 6546d51d3350b0af11243f4d1392ed0a9d955188..77f99062cf3e1508a879ef679ab4febe2a99007d 100644 (file)
@@ -72,6 +72,7 @@ extern void *runtime·WaitForSingleObject;
 extern void *runtime·WriteFile;
 extern void *runtime·timeBeginPeriod;
 
+#pragma dataflag NOPTR
 void *runtime·GetQueuedCompletionStatusEx;
 
 extern uintptr runtime·externalthreadhandlerp;
@@ -289,7 +290,9 @@ typedef struct KSYSTEM_TIME {
        int32   High2Time;
 } KSYSTEM_TIME;
 
+#pragma dataflag NOPTR
 const KSYSTEM_TIME* INTERRUPT_TIME     = (KSYSTEM_TIME*)0x7ffe0008;
+#pragma dataflag NOPTR
 const KSYSTEM_TIME* SYSTEM_TIME                = (KSYSTEM_TIME*)0x7ffe0014;
 
 static void badsystime(void);
@@ -500,6 +503,7 @@ runtime·ctrlhandler1(uint32 type)
 
 extern void runtime·dosigprof(Context *r, G *gp, M *mp);
 extern void runtime·profileloop(void);
+#pragma dataflag NOPTR
 static void *profiletimer;
 
 static void
index 00604372f1b13db28fd5c2ec9a3f3627cff3d2bc..3c2deda903485a98a031bf8e0563f1c7cd57732b 100644 (file)
@@ -17,4 +17,4 @@ TEXT main(SB),NOSPLIT,$0
 
 
 DATA  runtime·iswindows(SB)/4, $1
-GLOBL runtime·iswindows(SB), $4
+GLOBL runtime·iswindows(SB), NOPTR, $4
index 890a570d1d77f0ac217cea461ced3814c18b7f94..197f52e113b4312040c629432b38f95de148325c 100644 (file)
@@ -16,4 +16,4 @@ TEXT main(SB),NOSPLIT,$-8
        JMP     AX
 
 DATA  runtime·iswindows(SB)/4, $1
-GLOBL runtime·iswindows(SB), $4
+GLOBL runtime·iswindows(SB), NOPTR, $4