public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] pru: Do not define MISSING_SYSCALL_NAMES for pru
@ 2024-05-21 17:02 Dimitar Dimitrov
  2024-05-22 15:53 ` Jeff Johnston
  0 siblings, 1 reply; 2+ messages in thread
From: Dimitar Dimitrov @ 2024-05-21 17:02 UTC (permalink / raw)
  To: newlib; +Cc: Dimitar Dimitrov

The PRU newlib port is supposed to implement case #2 as described in
newlib/libc/include/reent.h .  Thus drop the defining of
MISSING_SYSCALL_NAMES.

Before:
  $ pru-nm libnosys.a | grep getentropy
  00000000 T getentropy

With this patch:
  $ pru-nm libnosys.a | grep getentropy
  00000000 T _getentropy

Ok for master?

ChangeLog:

	* libgloss/configure: Regenerate.
	* libgloss/libnosys/acinclude.m4: Do not define
	MISSING_SYSCALL_NAMES for pru.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
---
 libgloss/configure             | 1 +
 libgloss/libnosys/acinclude.m4 | 1 +
 2 files changed, 2 insertions(+)

diff --git a/libgloss/configure b/libgloss/configure
index a49f58638..562f1ffb8 100755
--- a/libgloss/configure
+++ b/libgloss/configure
@@ -5349,6 +5349,7 @@ case "${target}" in
   mn10?00-*-*) ;;
   riscv*-*-*) ;;
   powerpcle-*-pe) ;;
+  pru-*-*) ;;
   sh*-*-*) ;;
   sparc-sun-sunos*) ;;
   sparc64-*-*) ;;
diff --git a/libgloss/libnosys/acinclude.m4 b/libgloss/libnosys/acinclude.m4
index ba293f08a..df7433e70 100644
--- a/libgloss/libnosys/acinclude.m4
+++ b/libgloss/libnosys/acinclude.m4
@@ -16,6 +16,7 @@ case "${target}" in
   mn10?00-*-*) ;;
   riscv*-*-*) ;;
   powerpcle-*-pe) ;;
+  pru-*-*) ;;
   sh*-*-*) ;;
   sparc-sun-sunos*) ;;
   sparc64-*-*) ;;
-- 
2.45.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] pru: Do not define MISSING_SYSCALL_NAMES for pru
  2024-05-21 17:02 [PATCH] pru: Do not define MISSING_SYSCALL_NAMES for pru Dimitar Dimitrov
@ 2024-05-22 15:53 ` Jeff Johnston
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Johnston @ 2024-05-22 15:53 UTC (permalink / raw)
  To: Dimitar Dimitrov; +Cc: newlib

[-- Attachment #1: Type: text/plain, Size: 1593 bytes --]

Patch applied.  Thanks.

-- Jeff J.

On Tue, May 21, 2024 at 1:02 PM Dimitar Dimitrov <dimitar@dinux.eu> wrote:

> The PRU newlib port is supposed to implement case #2 as described in
> newlib/libc/include/reent.h .  Thus drop the defining of
> MISSING_SYSCALL_NAMES.
>
> Before:
>   $ pru-nm libnosys.a | grep getentropy
>   00000000 T getentropy
>
> With this patch:
>   $ pru-nm libnosys.a | grep getentropy
>   00000000 T _getentropy
>
> Ok for master?
>
> ChangeLog:
>
>         * libgloss/configure: Regenerate.
>         * libgloss/libnosys/acinclude.m4: Do not define
>         MISSING_SYSCALL_NAMES for pru.
>
> Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
> ---
>  libgloss/configure             | 1 +
>  libgloss/libnosys/acinclude.m4 | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/libgloss/configure b/libgloss/configure
> index a49f58638..562f1ffb8 100755
> --- a/libgloss/configure
> +++ b/libgloss/configure
> @@ -5349,6 +5349,7 @@ case "${target}" in
>    mn10?00-*-*) ;;
>    riscv*-*-*) ;;
>    powerpcle-*-pe) ;;
> +  pru-*-*) ;;
>    sh*-*-*) ;;
>    sparc-sun-sunos*) ;;
>    sparc64-*-*) ;;
> diff --git a/libgloss/libnosys/acinclude.m4
> b/libgloss/libnosys/acinclude.m4
> index ba293f08a..df7433e70 100644
> --- a/libgloss/libnosys/acinclude.m4
> +++ b/libgloss/libnosys/acinclude.m4
> @@ -16,6 +16,7 @@ case "${target}" in
>    mn10?00-*-*) ;;
>    riscv*-*-*) ;;
>    powerpcle-*-pe) ;;
> +  pru-*-*) ;;
>    sh*-*-*) ;;
>    sparc-sun-sunos*) ;;
>    sparc64-*-*) ;;
> --
> 2.45.0
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-22 15:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-21 17:02 [PATCH] pru: Do not define MISSING_SYSCALL_NAMES for pru Dimitar Dimitrov
2024-05-22 15:53 ` Jeff Johnston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).