diff options
author | Dale S. Rahn <rahnds@cvs.openbsd.org> | 1997-04-21 21:04:38 +0000 |
---|---|---|
committer | Dale S. Rahn <rahnds@cvs.openbsd.org> | 1997-04-21 21:04:38 +0000 |
commit | dd2a17052c84c5c8fa6a67b37db7156e758312eb (patch) | |
tree | fd8b253a4a50bc8b56f148dec948b20b7f455ee5 /lib | |
parent | 6b634c6937ba07f51acaaa13c6ecef78f3827fde (diff) |
Ugly hack to work around bug in 88k linker.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/csu/mvme88k/crt0.c | 2 | ||||
-rw-r--r-- | lib/libc/arch/mvme88k/sys/sbrk.S | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/csu/mvme88k/crt0.c b/lib/csu/mvme88k/crt0.c index 4bc4f00573c..ff5ef2d1339 100644 --- a/lib/csu/mvme88k/crt0.c +++ b/lib/csu/mvme88k/crt0.c @@ -93,9 +93,11 @@ __crt0_real_start(int argc, char *argv[], char *envp[]) register char *ap; volatile int a = 0; extern int minbrk asm ("minbrk"); + extern int curbrk asm ("curbrk"); extern int end; minbrk = (int)&end; + curbrk = (int)&end; environ = envp; /* environ is for the user that can't get at 'envp' */ if (ap = argv[0]) diff --git a/lib/libc/arch/mvme88k/sys/sbrk.S b/lib/libc/arch/mvme88k/sys/sbrk.S index 5a0ff4f8f1c..497aa7711d3 100644 --- a/lib/libc/arch/mvme88k/sys/sbrk.S +++ b/lib/libc/arch/mvme88k/sys/sbrk.S @@ -38,7 +38,7 @@ #if defined(LIBC_SCCS) && !defined(lint) .data /*.asciz "from: @(#)sbrk.s 5.1 (Berkeley) 5/12/90"*/ - .asciz "$Id: sbrk.S,v 1.1 1997/03/25 17:07:23 rahnds Exp $" + .asciz "$Id: sbrk.S,v 1.2 1997/04/21 21:04:37 rahnds Exp $" .text #endif /* LIBC_SCCS and not lint */ @@ -48,7 +48,10 @@ .globl curbrk .data +curbrk: .long 0 +/* curbrk: .long _end +*/ .text ENTRY(sbrk) |