diff options
author | kan <kan@FreeBSD.org> | 2002-08-08 17:28:07 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2002-08-08 17:28:07 +0000 |
commit | c1490b1966afda03b0e01828688b7638b434db18 (patch) | |
tree | 3936241332e6114c383dd782fb1466573995565f /lib/libc/i386/sys/sbrk.S | |
parent | 2f9d7d8897afc904c549448823b20db02b8d9367 (diff) | |
download | FreeBSD-src-c1490b1966afda03b0e01828688b7638b434db18.zip FreeBSD-src-c1490b1966afda03b0e01828688b7638b434db18.tar.gz |
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
Diffstat (limited to 'lib/libc/i386/sys/sbrk.S')
-rw-r--r-- | lib/libc/i386/sys/sbrk.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/i386/sys/sbrk.S b/lib/libc/i386/sys/sbrk.S index dffb7ea..97c4769 100644 --- a/lib/libc/i386/sys/sbrk.S +++ b/lib/libc/i386/sys/sbrk.S @@ -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) |