H8: Honor USER_LABEL_PREFIX set by ld

Message ID 20260822001114.1564261-1-jdx@o2.pl
State New
Headers
Series H8: Honor USER_LABEL_PREFIX set by ld |

Commit Message

Jan Dubiec Aug. 22, 2026, 12:10 a.m. UTC
  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(-)
  

Comments

Jeff Johnston Aug. 25, 2026, 12:17 a.m. UTC | #1
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
>
>
  

Patch

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