summaryrefslogtreecommitdiff
path: root/lib/libc/arch
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2021-11-27 15:12:20 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2021-11-27 15:12:20 +0000
commitcdad5fa29a91bb9d53012cb3a02465d955da3ca4 (patch)
treeb97942a745e27939617cdb5a58fa67dc85ae0ca1 /lib/libc/arch
parent101943456ab80078eaef7cf24edb4873c00ec7de (diff)
Make brk() and sbrk() weak again to fix build with clang 13.
OK jsg@
Diffstat (limited to 'lib/libc/arch')
-rw-r--r--lib/libc/arch/mips64/sys/brk.S5
-rw-r--r--lib/libc/arch/mips64/sys/sbrk.S5
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/libc/arch/mips64/sys/brk.S b/lib/libc/arch/mips64/sys/brk.S
index 1b2becceb72..ada3b7304e6 100644
--- a/lib/libc/arch/mips64/sys/brk.S
+++ b/lib/libc/arch/mips64/sys/brk.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: brk.S,v 1.8 2016/05/30 05:18:52 guenther Exp $ */
+/* $OpenBSD: brk.S,v 1.9 2021/11/27 15:12:19 visa Exp $ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -45,8 +45,6 @@ __minbrk:
FRAMESZ= MKFSIZ(1,1)
GPOFF= FRAMESZ-2*REGSZ
- .weak brk
-
LEAF(brk, FRAMESZ)
PTR_SUBU sp, FRAMESZ
SETUP_GP64(GPOFF, brk)
@@ -70,3 +68,4 @@ LEAF(brk, FRAMESZ)
PTR_ADDU sp, FRAMESZ
jr t9
END(brk)
+ .weak brk
diff --git a/lib/libc/arch/mips64/sys/sbrk.S b/lib/libc/arch/mips64/sys/sbrk.S
index bff3afbabe9..87b9563a72f 100644
--- a/lib/libc/arch/mips64/sys/sbrk.S
+++ b/lib/libc/arch/mips64/sys/sbrk.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbrk.S,v 1.8 2016/05/30 05:18:52 guenther Exp $ */
+/* $OpenBSD: sbrk.S,v 1.9 2021/11/27 15:12:19 visa Exp $ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -45,8 +45,6 @@ __curbrk: PTR_VAL _C_LABEL(_end)
FRAMESZ= MKFSIZ(1,1)
GPOFF= FRAMESZ-2*REGSZ
- .weak sbrk
-
LEAF(sbrk, FRAMESZ)
PTR_SUBU sp, FRAMESZ
SETUP_GP64(GPOFF, sbrk)
@@ -68,3 +66,4 @@ LEAF(sbrk, FRAMESZ)
PTR_ADDU sp, FRAMESZ
jr t9
END(sbrk)
+ .weak sbrk