summaryrefslogtreecommitdiff
path: root/lib/libc/arch/powerpc/sys/sbrk.S
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-10-07 04:30:31 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-10-07 04:30:31 +0000
commitf673100e04e61cbdc1c6b7c36245226c5fca0b67 (patch)
treef4931e634e276fb77db650b726f4325f4482fbe0 /lib/libc/arch/powerpc/sys/sbrk.S
parent87f432ba2939777cbf3af2f9352cbf749033183c (diff)
s/curbrk/__curbrk/ as suggested by art, a few _ASM_LABEL added as appropriate.
Diffstat (limited to 'lib/libc/arch/powerpc/sys/sbrk.S')
-rw-r--r--lib/libc/arch/powerpc/sys/sbrk.S16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/libc/arch/powerpc/sys/sbrk.S b/lib/libc/arch/powerpc/sys/sbrk.S
index 1c51482fe2e..58c5f11701a 100644
--- a/lib/libc/arch/powerpc/sys/sbrk.S
+++ b/lib/libc/arch/powerpc/sys/sbrk.S
@@ -2,9 +2,9 @@
.data
.globl _end
- .globl curbrk
+ .globl _ASM_LABEL(__curbrk)
.globl minbrk
-_ASM_LABEL(curbrk):
+_ASM_LABEL(__curbrk):
.long _C_LABEL(end)
_ASM_LABEL(minbrk):
.long _C_LABEL(end)
@@ -13,16 +13,16 @@ _ASM_LABEL(minbrk):
.text
PREFIX2(sbrk,break)
- /* call break(curbrk + size) */
+ /* call break(__curbrk + size) */
#ifndef PIC
- addis 6, 0, curbrk@H
- ori 6, 6, curbrk@L /* # 6 = &curbrk */
+ addis 6, 0, _ASM_LABEL(__curbrk)@H
+ ori 6, 6, _ASM_LABEL(__curbrk)@L /* # 6 = &__curbrk */
#else
mflr 10
bl _GLOBAL_OFFSET_TABLE_@local-4
mflr 9
mtlr 10
- lwz 6,_ASM_LABEL(curbrk)@got(9)
+ lwz 6,_ASM_LABEL(__curbrk)@got(9)
#endif
lwz 5, 0(6) /* # 5 = *6 (old_curbrk) */
add 3, 5, 3 /* # 3 = new_curbrk */
@@ -35,8 +35,8 @@ PREFIX2(sbrk,break)
beq+ .L_sbrk_ok
b PIC_PLT(_ASM_LABEL(__cerror))
- /* update, curbrk and return */
+ /* update, __curbrk and return */
.L_sbrk_ok:
- stw 7, 0(6) /* # remember, 6=&curbrk, 7=new_curbrk */
+ stw 7, 0(6) /* # remember, 6=&__curbrk, 7=new_curbrk */
mr 3, 5 /* # remember, 5=old_curbrk */
blr