Shameless hack to reference end if using a.out and _end if using ELF.

This commit is contained in:
kleink 1999-06-03 20:14:58 +00:00
parent bb1f24c221
commit 15fb0e4315
2 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: brk.S,v 1.6 1999/03/31 18:14:27 kleink Exp $ */
/* $NetBSD: brk.S,v 1.7 1999/06/03 20:14:58 kleink Exp $ */
/*
* Copyright (c) 1992, 1993
@ -44,7 +44,7 @@
#if 0
.asciz "@(#)brk.s 8.1 (Berkeley) 6/4/93"
#else
RCSID("$NetBSD: brk.S,v 1.6 1999/03/31 18:14:27 kleink Exp $")
RCSID("$NetBSD: brk.S,v 1.7 1999/06/03 20:14:58 kleink Exp $")
#endif
#endif /* SYSLIBC_SCCS and not lint */
@ -52,10 +52,11 @@
.globl CURBRK
.globl _C_LABEL(__minbrk)
.globl _end
.data
_C_LABEL(__minbrk):
.long _C_LABEL(end) ! lower brk limit; also for gmon code
.long _end ! lower brk limit; also for gmon code
.text
#ifdef PIC

View File

@ -1,4 +1,4 @@
/* $NetBSD: sbrk.S,v 1.5 1999/03/31 18:14:27 kleink Exp $ */
/* $NetBSD: sbrk.S,v 1.6 1999/06/03 20:14:58 kleink Exp $ */
/*
* Copyright (c) 1992, 1993
@ -44,17 +44,17 @@
#if 0
.asciz "@(#)sbrk.s 8.1 (Berkeley) 6/4/93"
#else
RCSID("$NetBSD: sbrk.S,v 1.5 1999/03/31 18:14:27 kleink Exp $")
RCSID("$NetBSD: sbrk.S,v 1.6 1999/06/03 20:14:58 kleink Exp $")
#endif
#endif /* SYSLIBC_SCCS and not lint */
#include "SYS.h"
.globl _C_LABEL(end)
.globl _end
.globl CURBRK
.data
CURBRK: .long _C_LABEL(end)
CURBRK: .long _end
.text
ENTRY(sbrk)