pru: Do not define MISSING_SYSCALL_NAMES for pru

Message ID 20240521170202.470291-1-dimitar@dinux.eu
State New
Headers
Series pru: Do not define MISSING_SYSCALL_NAMES for pru |

Commit Message

Dimitar Dimitrov May 21, 2024, 5:02 p.m. UTC
  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(+)
  

Comments

Jeff Johnston May 22, 2024, 3:53 p.m. UTC | #1
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
>
>
  

Patch

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-*-*) ;;