Use '_end' symbol instead of 'end' to initialize minbrk and curbrk

variables. Both symbols are set to the same value by the linker,
and _end symbol has less chances to clash with application defined
global symbols.

alpha, ia64 and sparc64 ports already use _end, i386 is now
consistent with them.

Reviewed by:	bde
Approved by:	obrien
Reported by:	pirzyk
This commit is contained in:
kan 2002-08-08 17:28:07 +00:00
parent 2f9d7d8897
commit c1490b1966
2 changed files with 6 additions and 6 deletions

View File

@ -42,13 +42,13 @@ __FBSDID("$FreeBSD$");
#include "SYS.h"
.globl CNAME(end)
.globl CNAME(_end)
.globl HIDENAME(minbrk)
.globl HIDENAME(curbrk)
.data
HIDENAME(minbrk): .long CNAME(end)
HIDENAME(curbrk): .long CNAME(end)
HIDENAME(minbrk): .long CNAME(_end)
HIDENAME(curbrk): .long CNAME(_end)
.text
ENTRY(sbrk)

View File

@ -42,13 +42,13 @@ __FBSDID("$FreeBSD$");
#include "SYS.h"
.globl CNAME(end)
.globl CNAME(_end)
.globl HIDENAME(minbrk)
.globl HIDENAME(curbrk)
.data
HIDENAME(minbrk): .long CNAME(end)
HIDENAME(curbrk): .long CNAME(end)
HIDENAME(minbrk): .long CNAME(_end)
HIDENAME(curbrk): .long CNAME(_end)
.text
ENTRY(sbrk)