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:
parent
2f9d7d8897
commit
c1490b1966
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user