[glibc] misc: Fix typos in comments

Yury Khrustalev via Glibc-cvs <[email protected]> Mon, 1 Jun 2026 13:24:11 +0000 (GMT)
Newsgroups gmane.comp.lib.glibc.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0458560b5d76d633c4ed9fc5ace64fb89cd6092c

commit 0458560b5d76d633c4ed9fc5ace64fb89cd6092c
Author: Yury Khrustalev <[email protected]>
Date:   Mon Jun 1 13:29:53 2026 +0100

    misc: Fix typos in comments

Diff:
---
 elf/Makefile                    | 2 +-
 elf/dl-close.c                  | 2 +-
 elf/dl-deps.c                   | 2 +-
 elf/dl-find_object.c            | 4 ++--
 elf/dl-open.c                   | 2 +-
 elf/dl-tls.c                    | 6 +++---
 malloc/tst-malloc-thread-fail.c | 2 +-
 7 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/elf/Makefile b/elf/Makefile
index a58a902451..bdf9a786d5 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -2810,7 +2810,7 @@ $(objpfx)tst-ldconfig-soname.out : tst-ldconfig-soname.sh \
 
 # Test static linking of all the libraries we can possibly link
 # together.  Note that in some configurations this may be less than the
-# complete list of libraries we build but we try to maxmimize this list.
+# complete list of libraries we build but we try to maximize this list.
 $(objpfx)tst-linkall-static: \
   $(common-objpfx)math/libm.a \
   $(common-objpfx)resolv/libresolv.a \
diff --git a/elf/dl-close.c b/elf/dl-close.c
index 92bce07c7a..8b6e654791 100644
--- a/elf/dl-close.c
+++ b/elf/dl-close.c
@@ -485,7 +485,7 @@ _dl_close_worker (struct link_map *map, bool force)
   size_t tls_free_end;
   tls_free_start = tls_free_end = NO_TLS_OFFSET;
 
-  /* Protects global and module specitic TLS state.  */
+  /* Protects global and module specific TLS state.  */
   __rtld_lock_lock_recursive (GL(dl_load_tls_lock));
 
   /* We modify the list of loaded objects.  */
diff --git a/elf/dl-deps.c b/elf/dl-deps.c
index 446163b55c..7a904e5879 100644
--- a/elf/dl-deps.c
+++ b/elf/dl-deps.c
@@ -557,7 +557,7 @@ cannot load auxiliary `%s' because of empty dynamic string token "
       /* Copy the binary into position 0.  */
       l_initfini[0] = map->l_searchlist.r_list[map_index];
 
-      /* Copy the filtees.  */
+      /* Copy the filters.  */
       for (i = 0; i < map_index; ++i)
 	l_initfini[i+1] = map->l_searchlist.r_list[i];
 
diff --git a/elf/dl-find_object.c b/elf/dl-find_object.c
index 28c04b374e..eebd32ee31 100644
--- a/elf/dl-find_object.c
+++ b/elf/dl-find_object.c
@@ -465,7 +465,7 @@ _dl_find_object (void *pc1, struct dl_find_object *result)
 }
 rtld_hidden_def (_dl_find_object)
 
-/* Subroutine of _dlfo_process_initial to split out noncontigous link
+/* Subroutine of _dlfo_process_initial to split out noncontiguous link
    maps.  NODELETE is the number of used _dlfo_nodelete_mappings
    elements.  It is incremented as needed, and the new NODELETE value
    is returned.  */
@@ -586,7 +586,7 @@ _dl_find_object_init (void)
       {
         /* Non-contiguous main maps are handled in
            _dlfo_process_initial.  Mark as initialized, but not
-           coverying any valid PC.  */
+           covering any valid PC.  */
         _dlfo_main.map_start = -1;
         _dlfo_main.map_end = -1;
       }
diff --git a/elf/dl-open.c b/elf/dl-open.c
index ee25d4d42b..0a34b1b334 100644
--- a/elf/dl-open.c
+++ b/elf/dl-open.c
@@ -777,7 +777,7 @@ dl_open_worker (void *a)
 
 #ifdef SHARED
 	if (was_not_consistent)
-	  /* Avoid redudant/recursive signalling.  */
+	  /* Avoid redundant/recursive signalling.  */
 	  _dl_audit_activity_nsid (nsid, LA_ACT_CONSISTENT);
 #endif
       }
diff --git a/elf/dl-tls.c b/elf/dl-tls.c
index edf31383b2..1380bd7083 100644
--- a/elf/dl-tls.c
+++ b/elf/dl-tls.c
@@ -339,7 +339,7 @@ _dl_determine_tlsoffset (void)
   /* Extra TLS block for internal usage to append at the end of the TLS blocks
      (in allocation order).  The address at which the block is allocated must
      be aligned to 'extra_tls_align'.  The size of the block as returned by
-     '_dl_extra_tls_get_size ()' is always a multiple of the aligment.
+     '_dl_extra_tls_get_size ()' is always a multiple of the alignment.
 
      On Linux systems this is where the rseq area will be allocated.  On other
      systems it is currently unused and both values will be '0'.  */
@@ -419,7 +419,7 @@ _dl_determine_tlsoffset (void)
   /* Extra TLS block for internal usage to append at the end of the TLS blocks
      (in allocation order).  The address at which the block is allocated must
      be aligned to 'extra_tls_align'.  The size of the block as returned by
-     '_dl_extra_tls_get_size ()' is always a multiple of the aligment.
+     '_dl_extra_tls_get_size ()' is always a multiple of the alignment.
 
      On Linux systems this is where the rseq area will be allocated.  On other
      systems it is currently unused and both values will be '0'.  */
@@ -699,7 +699,7 @@ _dl_allocate_tls_init (void *result, bool main_thread)
 	     initialization because it would already be set by the
 	     audit setup, which uses the dlopen code and already
 	     clears l_need_tls_init.  Calls with !main_thread from
-	     pthread_create need to initialze TLS for the current
+	     pthread_create need to initialize TLS for the current
 	     thread regardless of namespace.  */
 	  if (map->l_ns != LM_ID_BASE && main_thread)
 	    continue;
diff --git a/malloc/tst-malloc-thread-fail.c b/malloc/tst-malloc-thread-fail.c
index d6319a3b3c..29af8ca53d 100644
--- a/malloc/tst-malloc-thread-fail.c
+++ b/malloc/tst-malloc-thread-fail.c
@@ -310,7 +310,7 @@ int
 do_test (void)
 {
   /* Limit the number of malloc arenas.  We use a very low number so
-     that despute the address space limit configured below, all
+     that despite the address space limit configured below, all
      requested arenas a can be created.  */
   if (mallopt (M_ARENA_MAX, 2) == 0)
     {