[PATCH] libgloss/epiphany: Fix move instruction in crt0.S

Jeff Johnston jjohnstn@redhat.com
Wed Mar 8 19:28:40 GMT 2023


Patch applied.  Thanks.

-- Jeff J.

On Wed, Mar 8, 2023 at 8:07 AM Sebastian Huber <
sebastian.huber@embedded-brains.de> wrote:

> This patch relates to bug report:
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=30212
> ---
>  libgloss/epiphany/crt0.S | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libgloss/epiphany/crt0.S b/libgloss/epiphany/crt0.S
> index b0d9ecbabe..fcbba1e65b 100644
> --- a/libgloss/epiphany/crt0.S
> +++ b/libgloss/epiphany/crt0.S
> @@ -121,7 +121,7 @@ _external_start:
>  #error "not implemented"
>  #else  /* !__STRUCT_ALIGN_64__ */
>         str     r1, [r2, 0]     ; __atexit = &__atexit0
> -       movr    r0, 1
> +       mov     r0, 1
>         str     r0, [r1, 4]     ; __atexit0._ind = 1
>         mov     r0,%low(fini)
>         movt    r0,%high(fini)
> --
> 2.35.3
>
>


More information about the Newlib mailing list