[PATCH] Add stub for getentropy
Corinna Vinschen
vinschen@redhat.com
Wed Aug 9 09:42:24 GMT 2023
On Aug 8 18:09, Torbjörn SVENSSON wrote:
> Example test case that fails with undefined reference to getentropy:
> [...]
> Contributed by STMicroelectronics
>
> Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
> ---
> libgloss/Makefile.in | 5 +
> libgloss/libnosys/Makefile.inc | 1 +
> libgloss/libnosys/getentropy.c | 22 ++++
> newlib/Makefile.in | 147 +++++++++++++++++----------
> newlib/libc/include/_syslist.h | 1 +
> newlib/libc/include/reent.h | 2 +
> newlib/libc/reent/Makefile.inc | 2 +
> newlib/libc/reent/getentropyr.c | 53 ++++++++++
> newlib/libc/syscalls/Makefile.inc | 1 +
> newlib/libc/syscalls/sysgetentropy.c | 12 +++
> 10 files changed, 192 insertions(+), 54 deletions(-)
> create mode 100644 libgloss/libnosys/getentropy.c
> create mode 100644 newlib/libc/reent/getentropyr.c
> create mode 100644 newlib/libc/syscalls/sysgetentropy.c
Pushed.
Thanks,
Corinna
More information about the Newlib
mailing list