[RFC,09/23] hurd: Make init-first.c no longer x86-specific

Message ID 20240103171502.1358371-10-bugaevc@gmail.com
State Committed
Commit 9eaa0e179962a10db91fe566753fc38623097dbe
Headers
Series aarch64-gnu port |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent
linaro-tcwg-bot/tcwg_glibc_build--master-arm fail Patch failed to apply
redhat-pt-bot/TryBot-still_applies warning Patch no longer applies to master

Commit Message

Sergey Bugaev Jan. 3, 2024, 5:14 p.m. UTC
  This will make it usable in other ports.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
---
 sysdeps/mach/hurd/{x86 => }/init-first.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename sysdeps/mach/hurd/{x86 => }/init-first.c (98%)
  

Comments

Samuel Thibault Jan. 4, 2024, 10:48 p.m. UTC | #1
Applied, thanks!

Sergey Bugaev, le mer. 03 janv. 2024 20:14:42 +0300, a ecrit:
> This will make it usable in other ports.
> 
> Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
> ---
>  sysdeps/mach/hurd/{x86 => }/init-first.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>  rename sysdeps/mach/hurd/{x86 => }/init-first.c (98%)
> 
> diff --git a/sysdeps/mach/hurd/x86/init-first.c b/sysdeps/mach/hurd/init-first.c
> similarity index 98%
> rename from sysdeps/mach/hurd/x86/init-first.c
> rename to sysdeps/mach/hurd/init-first.c
> index 211b2096..85261916 100644
> --- a/sysdeps/mach/hurd/x86/init-first.c
> +++ b/sysdeps/mach/hurd/init-first.c
> @@ -1,4 +1,4 @@
> -/* Initialization code run first thing by the ELF startup code.  For x86/Hurd.
> +/* Initialization code run first thing by the ELF startup code.  For Hurd.
>     Copyright (C) 1995-2024 Free Software Foundation, Inc.
>     This file is part of the GNU C Library.
>  
> @@ -155,7 +155,7 @@ first_init (void)
>  
>  #ifndef SHARED
>    /* In the static case, we need to set up TLS early so that the stack
> -     protection guard can be read at gs:0x14 by the gcc-generated snippets.  */
> +     protection guard can be read at from TLS by the GCC-generated snippets.  */
>    _hurd_tls_init (&__init1_tcbhead, 0);
>  #endif
>  
> -- 
> 2.43.0
> 
>
  

Patch

diff --git a/sysdeps/mach/hurd/x86/init-first.c b/sysdeps/mach/hurd/init-first.c
similarity index 98%
rename from sysdeps/mach/hurd/x86/init-first.c
rename to sysdeps/mach/hurd/init-first.c
index 211b2096..85261916 100644
--- a/sysdeps/mach/hurd/x86/init-first.c
+++ b/sysdeps/mach/hurd/init-first.c
@@ -1,4 +1,4 @@ 
-/* Initialization code run first thing by the ELF startup code.  For x86/Hurd.
+/* Initialization code run first thing by the ELF startup code.  For Hurd.
    Copyright (C) 1995-2024 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -155,7 +155,7 @@  first_init (void)
 
 #ifndef SHARED
   /* In the static case, we need to set up TLS early so that the stack
-     protection guard can be read at gs:0x14 by the gcc-generated snippets.  */
+     protection guard can be read at from TLS by the GCC-generated snippets.  */
   _hurd_tls_init (&__init1_tcbhead, 0);
 #endif