From 728bfe47c897649e3f03d6f7a0a538ccfae78a0e Mon Sep 17 00:00:00 2001 From: rahnds Date: Mon, 21 Apr 1997 21:04:36 +0000 Subject: [PATCH] Ugly hack to work around bug in 88k linker. --- lib/csu/mvme88k/crt0.c | 2 ++ lib/libc/arch/mvme88k/sys/sbrk.S | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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) -- 2.20.1