Commit 75cca052 authored by Russ Cox's avatar Russ Cox

runtime: more NOPTR

Fixes (or makes better) various builds.

TBR=iant
CC=golang-codereviews
https://golang.org/cl/146280043
parent 39cd39b0
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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;
......
......@@ -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
......
......@@ -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
......@@ -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
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