diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2021-10-25 14:38:11 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2021-10-25 14:38:11 +0000 |
commit | 22f69748d8444a35ef07d45773790d5cabdf5489 (patch) | |
tree | 9e637c390d6d80abb7fcd390d15a95d6dd9d678f /lib/libc/arch/riscv64/sys/sbrk.S | |
parent | 617ff59349d42e04409b6eaa154dbfcf3eb34301 (diff) |
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@
Diffstat (limited to 'lib/libc/arch/riscv64/sys/sbrk.S')
-rw-r--r-- | lib/libc/arch/riscv64/sys/sbrk.S | 4 |
1 files changed, 2 insertions, 2 deletions
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 <drahn@openbsd.org> * @@ -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 |