[PATCH] H8: Honor USER_LABEL_PREFIX set by ld

Jeff Johnston jjohnstn@redhat.com
Tue Aug 25 00:17:07 GMT 2026


Patch applied.  Thanks.

-- Jeff J.

On Fri, Aug 21, 2026 at 8:14 PM Jan Dubiec <jdx@o2.pl> wrote:

> This patch complements the following binutils patch:
> https://sourceware.org/pipermail/binutils/2026-August/150974.html.
>
> Signed-off-by: Jan Dubiec <jdx@o2.pl>
> ---
>  newlib/libc/sys/h8300hms/crt0.S | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/newlib/libc/sys/h8300hms/crt0.S
> b/newlib/libc/sys/h8300hms/crt0.S
> index 020b957d6..767d1efaa 100644
> --- a/newlib/libc/sys/h8300hms/crt0.S
> +++ b/newlib/libc/sys/h8300hms/crt0.S
> @@ -11,8 +11,8 @@
>  #ifdef __H8300__
>
>         .section .text
> -       .global _start
> -_start:
> +       .global __start
> +__start:
>         mov.w   #_stack,sp
>         mov.w   #_edata,r0
>         mov.w   #_end,r2
> @@ -43,8 +43,8 @@ _stack:       .space  2
>  #if defined (__H8300H__) || defined (__H8300S__) || defined (__H8300SX__)
>
>         .section .text
> -       .global _start
> -_start:
> +       .global __start
> +__start:
>  #ifdef __NORMAL_MODE__
>         mov.w   #_stack,sp
>         mov.w   #_edata,r0
> --
> 2.55.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/newlib/attachments/20260824/10f65548/attachment.htm>


More information about the Newlib mailing list