summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2022-12-03 15:02:31 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2022-12-03 15:02:31 +0000
commit82feb7631b329e2cf7eeff296f96175f812f68c4 (patch)
tree7fc12a2c446d7bb351c25ec1beb0c719be8772fc /lib/libc
parenteb9d114544fdff4c0340934d8d5715ac449a6844 (diff)
Add ENTRY_NB() and use it for brk.S and sbrk.S on riscv64
NB for "No Binding". This gets us rid of clang-13 warnings about a global symbol redefined as weak. Mostly a copy of what guenther@ already implemented on other archs. ok guenther@ tb@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/riscv64/sys/brk.S4
-rw-r--r--lib/libc/arch/riscv64/sys/sbrk.S4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/arch/riscv64/sys/brk.S b/lib/libc/arch/riscv64/sys/brk.S
index f1d75878177..287f28a7ff1 100644
--- a/lib/libc/arch/riscv64/sys/brk.S
+++ b/lib/libc/arch/riscv64/sys/brk.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: brk.S,v 1.3 2022/12/02 12:27:08 jca Exp $ */
+/* $OpenBSD: brk.S,v 1.4 2022/12/03 15:02:30 jca Exp $ */
/*
* Copyright (c) 2021 Dale Rahn <drahn@openbsd.org>
*
@@ -26,7 +26,7 @@ __minbrk:
.dword _end
-ENTRY(brk)
+ENTRY_NB(brk)
RETGUARD_SETUP(brk, t6)
lla t1, __minbrk
ld t5, 0(t1)
diff --git a/lib/libc/arch/riscv64/sys/sbrk.S b/lib/libc/arch/riscv64/sys/sbrk.S
index 40b6f0acb5a..f06cf2cf59a 100644
--- a/lib/libc/arch/riscv64/sys/sbrk.S
+++ b/lib/libc/arch/riscv64/sys/sbrk.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbrk.S,v 1.3 2022/12/02 12:27:08 jca Exp $ */
+/* $OpenBSD: sbrk.S,v 1.4 2022/12/03 15:02:30 jca Exp $ */
/*
* Copyright (c) 2021 Dale Rahn <drahn@openbsd.org>
*
@@ -28,7 +28,7 @@ __curbrk:
.dword _end
END(__curbrk)
-ENTRY(sbrk)
+ENTRY_NB(sbrk)
RETGUARD_SETUP(sbrk, t6)
lla t1, __curbrk