linux: Add sparck brk implementation

System Internals / glibc - Adhemerval Zanella [linaro.org] - 4 August 2021 20:38 UTC

It turned that the generic implementation of brk() does not work for sparc, since on failure kernel will just return the previous input value without setting the conditional register.

This patches adds back a sparc32 and sparc64 implementation removed by 720480934ab9107.

Checked on sparc64-linux-gnu and sparcv9-linux-gnu.

5b86241a03 linux: Add sparck brk implementation
sysdeps/unix/sysv/linux/sparc/brk.c | 58 +++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)

Upstream: sourceware.org


  • Share