Re: [Buildroot] [PATCH] package/uclibc: disable SSP support for riscv32

Waldemar Brodkorb <[email protected]>
Newsgroups net.busybox.buildroot
Message-ID <[email protected]>
Hi Romain,
Romain Naour wrote,

> On modern 32-bit architectures like RISC-V (riscv32), legacy 32-bit
> time syscalls like __NR_gettimeofday are intentionally omitted because
> RV32 implements a strict time64-only ABI to avoid the Year 2038 bug.
> 
> But uclibc-ng code [1] is using a direct __NR_gettimeofday syscall that
> is not defined for riscv32.
> 
> [1] https://github.com/wbx-github/uclibc-ng/blob/ae4a98f9612c7050b1bceb9c8340fe5ef9345e22/ldso/include/dl-syscall.h#L263
> 
> As a workaround, we have to disable the SSP support for uclibc-ng
> toolchain on riscv32 for now.

Thanks for your patch.

I would rather like to fix it inside uClibc-ng like suggested here:
https://lists.buildroot.org/pipermail/buildroot/2026-August/807581.html
https://mailman.openadk.org/mailman3/hyperkitty/list/[email protected]/thread/WIKMWPXJYAPTVVZ2MMZINUJNPIJXBMOE/

best regards
 Waldemar
 
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.