[COMMITTED] misc: Fix a few typos in comments

Yury Khrustalev yury.khrustalev@arm.com
Fri Mar 20 12:53:30 GMT 2026


Pushed as obvious.

---
 elf/rtld.c                      | 4 ++--
 malloc/arena.c                  | 2 +-
 sysdeps/aarch64/dl-trampoline.S | 2 +-
 sysdeps/aarch64/memchr.S        | 2 +-
 sysdeps/aarch64/memrchr.S       | 2 +-
 sysdeps/aarch64/strnlen.S       | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/elf/rtld.c b/elf/rtld.c
index e1c2105ba6..0eac823749 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2251,7 +2251,7 @@ dl_main (const ElfW(Phdr) *phdr,
 
   int consider_profiling = GLRO(dl_profile) != NULL;
 
-  /* If we are profiling we also must do lazy reloaction.  */
+  /* If we are profiling we also must do lazy relocation.  */
   GLRO(dl_lazy) |= consider_profiling;
 
   /* If libc.so has been loaded, relocate it early, after the dynamic
@@ -2291,7 +2291,7 @@ dl_main (const ElfW(Phdr) *phdr,
 	_dl_relocate_object (l, l->l_scope, GLRO(dl_lazy) ? RTLD_LAZY : 0,
 			     consider_profiling);
 
-	/* Add object to slot information data if necessasy.  */
+	/* Add object to slot information data if necessary.  */
 	if (l->l_tls_blocksize != 0 && __rtld_tls_init_tp_called)
 	  _dl_add_to_slotinfo (l, true);
       }
diff --git a/malloc/arena.c b/malloc/arena.c
index 03a812f54d..727d0517c4 100644
--- a/malloc/arena.c
+++ b/malloc/arena.c
@@ -275,7 +275,7 @@ __ptmalloc_init (void)
     __always_fail_morecore = true;
 #endif
 
-  /* Enable THP if DEFAULT_THP_PAGESIZE is non-zero.  Avoid quering the THP
+  /* Enable THP if DEFAULT_THP_PAGESIZE is non-zero.  Avoid querying the THP
      page size or mode since accessing /sys/kernel/mm is relatively slow and
      might not be accessible in containers.  */
   if (DEFAULT_THP_PAGESIZE > 0)
diff --git a/sysdeps/aarch64/dl-trampoline.S b/sysdeps/aarch64/dl-trampoline.S
index 957facaa09..b40d8bb31b 100644
--- a/sysdeps/aarch64/dl-trampoline.S
+++ b/sysdeps/aarch64/dl-trampoline.S
@@ -25,7 +25,7 @@
 #define ip1 x17
 #define lr  x30
 
-/* RELA relocatons are 3 pointers */
+/* RELA relocations are 3 pointers */
 #define RELA_SIZE 24
 
 	.text
diff --git a/sysdeps/aarch64/memchr.S b/sysdeps/aarch64/memchr.S
index 84de5208c9..16d65ce7ba 100644
--- a/sysdeps/aarch64/memchr.S
+++ b/sysdeps/aarch64/memchr.S
@@ -82,7 +82,7 @@ L(start_loop):
 	subs	cntrem, cntin, tmp
 	b.lo	L(nomatch)
 
-	/* Make sure that it won't overread by a 16-byte chunk */
+	/* Make sure that it won't over-read by a 16-byte chunk */
 	tbz	cntrem, 4, L(loop32_2)
 	sub	src, src, 16
 	.p2align 4
diff --git a/sysdeps/aarch64/memrchr.S b/sysdeps/aarch64/memrchr.S
index 0b6df9a954..1344c32487 100644
--- a/sysdeps/aarch64/memrchr.S
+++ b/sysdeps/aarch64/memrchr.S
@@ -79,7 +79,7 @@ L(start_loop):
 	subs	cntrem, src, srcin
 	b.ls	L(nomatch)
 
-	/* Make sure that it won't overread by a 16-byte chunk */
+	/* Make sure that it won't over-read by a 16-byte chunk */
 	sub	cntrem, cntrem, 1
 	tbz	cntrem, 4, L(loop32_2)
 	add	src, src, 16
diff --git a/sysdeps/aarch64/strnlen.S b/sysdeps/aarch64/strnlen.S
index 1dfec3171a..cf7148f5dc 100644
--- a/sysdeps/aarch64/strnlen.S
+++ b/sysdeps/aarch64/strnlen.S
@@ -76,7 +76,7 @@ L(start_loop):
 	subs	cntrem, cntin, tmp
 	b.lo	L(nomatch)
 
-	/* Make sure that it won't overread by a 16-byte chunk */
+	/* Make sure that it won't over-read by a 16-byte chunk */
 	tbz	cntrem, 4, L(loop32_2)
 	sub	src, src, 16
 	.p2align 5
-- 
2.47.3



More information about the Libc-alpha mailing list