From 22f69748d8444a35ef07d45773790d5cabdf5489 Mon Sep 17 00:00:00 2001 From: Jeremie Courreges-Anglas Date: Mon, 25 Oct 2021 14:38:11 +0000 Subject: Make brk() and sbrk() weak again as intended. Apparently spotted by mortimer@ while working on clang 13 and amd64. No actual change on sparc64 as this architecture still uses ld.bfd. ok kettenis@ --- lib/libc/arch/riscv64/sys/sbrk.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/arch/riscv64/sys/sbrk.S') diff --git a/lib/libc/arch/riscv64/sys/sbrk.S b/lib/libc/arch/riscv64/sys/sbrk.S index 02d02d3900d..a58effc3232 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.1 2021/05/04 04:17:53 drahn Exp $ */ +/* $OpenBSD: sbrk.S,v 1.2 2021/10/25 14:38:10 jca Exp $ */ /* * Copyright (c) 2021 Dale Rahn * @@ -28,7 +28,6 @@ __curbrk: .dword _C_LABEL(_end) END(__curbrk) - .weak sbrk ENTRY(sbrk) RETGUARD_SETUP(sbrk, t6) @@ -48,3 +47,4 @@ ENTRY(sbrk) RETGUARD_CHECK(sbrk, t6); ret END(sbrk) + .weak sbrk -- cgit v1.2.3