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 | |
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')
-rw-r--r-- | lib/libc/arch/riscv64/sys/brk.S | 4 | ||||
-rw-r--r-- | lib/libc/arch/riscv64/sys/sbrk.S | 4 |
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 74a1c2a68bf..d84e1b5bcd6 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.1 2021/05/04 04:17:53 drahn Exp $ */ +/* $OpenBSD: brk.S,v 1.2 2021/10/25 14:38:10 jca Exp $ */ /* * Copyright (c) 2021 Dale Rahn <drahn@openbsd.org> * @@ -26,7 +26,6 @@ __minbrk: .dword _C_LABEL(_end) - .weak brk ENTRY(brk) RETGUARD_SETUP(brk, t6) lla t1, _C_LABEL(__minbrk) @@ -56,3 +55,4 @@ ENTRY(brk) RETGUARD_CHECK(brk, t6); ret END(brk) + .weak brk 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 |