public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 00/12] Fix spelling typos in comments, tests, and text files
@ 2020-12-12 16:49 Dmitry V. Levin
  2020-12-12 16:50 ` [PATCH 01/12] debuginfod: fix spelling typos in error diagnostics and comments Dmitry V. Levin
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Dmitry V. Levin @ 2020-12-12 16:49 UTC (permalink / raw)
  To: elfutils-devel

This is the least significant part of all spelling fixes, most users
won't notice any difference at all, but it still makes sense to use
correct spelling.

Dmitry V. Levin (12):
  debuginfod: fix spelling typos in error diagnostics and comments
  backends: fix spelling typos in comments
  config: fix spelling typos in comments and %changelog
  libasm: fix spelling typos in comments
  libcpu: fix spelling typos in comments
  libdw: fix spelling typos in comments and ChangeLog
  libdwelf: fix spelling typos in comments
  libdwfl: fix spelling typos in comments and ChangeLog
  libelf: fix spelling typos in comments
  src: fix spelling typos in comments and ChangeLog
  tests: fix spelling typos in error diagnostics and comments
  Fix spelling typos in NEWS, NOTES, TODO, and in comments of
    configure.ac

 ChangeLog                         |  7 +++++++
 NEWS                              | 18 +++++++++---------
 NOTES                             |  4 ++--
 TODO                              |  2 +-
 backends/ChangeLog                |  6 ++++++
 backends/aarch64_retval.c         |  2 +-
 backends/ppc_cfi.c                |  2 +-
 config/10-default-yama-scope.conf |  2 +-
 config/ChangeLog                  |  6 ++++++
 config/elfutils.spec.in           | 12 ++++++------
 config/upload-release.sh          |  2 +-
 configure.ac                      |  6 +++---
 debuginfod/ChangeLog              |  7 +++++++
 debuginfod/debuginfod-client.c    |  4 ++--
 debuginfod/debuginfod.cxx         |  6 +++---
 libasm/ChangeLog                  |  5 +++++
 libasm/asm_begin.c                |  2 +-
 libasm/asm_end.c                  |  2 +-
 libcpu/ChangeLog                  |  5 +++++
 libcpu/bpf_disasm.c               |  2 +-
 libcpu/i386_disasm.c              |  2 +-
 libdw/ChangeLog                   | 11 ++++++++++-
 libdw/dwarf.h                     |  2 +-
 libdw/dwarf_begin_elf.c           |  2 +-
 libdw/dwarf_getlocation.c         |  4 ++--
 libdw/dwarf_getsrclines.c         |  2 +-
 libdw/libdw.h                     | 10 +++++-----
 libdw/libdwP.h                    |  4 ++--
 libdwelf/ChangeLog                |  3 +++
 libdwelf/dwelf_strtab.c           |  2 +-
 libdwelf/libdwelf.h               |  4 ++--
 libdwfl/ChangeLog                 | 13 ++++++++++---
 libdwfl/dwfl_module_getdwarf.c    |  4 ++--
 libdwfl/dwfl_report_elf.c         |  2 +-
 libdwfl/libdwfl.h                 |  8 ++++----
 libdwfl/linux-pid-attach.c        |  2 +-
 libebl/ChangeLog                  |  2 +-
 libelf/ChangeLog                  | 11 +++++++++++
 libelf/common.h                   |  2 +-
 libelf/elf32_checksum.c           |  2 +-
 libelf/elf_begin.c                |  4 ++--
 libelf/elf_compress.c             |  2 +-
 libelf/elf_compress_gnu.c         |  2 +-
 libelf/gelf.h                     |  2 +-
 libelf/libelf.h                   |  2 +-
 libelf/libelfP.h                  |  2 +-
 src/ChangeLog                     | 14 ++++++++++++--
 src/ar.c                          |  4 ++--
 src/elfclassify.c                 |  6 +++---
 src/elfcompress.c                 |  2 +-
 src/elflint.c                     |  6 +++---
 src/readelf.c                     |  6 +++---
 src/size.c                        |  2 +-
 src/strings.c                     |  2 +-
 src/strip.c                       |  2 +-
 tests/ChangeLog                   | 11 +++++++++++
 tests/dwarf-die-addr-die.c        |  2 +-
 tests/dwfl-bug-fd-leak.c          |  2 +-
 tests/elfstrmerge.c               |  4 ++--
 tests/run-lfs-symbols.sh          |  2 +-
 tests/run-readelf-line.sh         |  2 +-
 tests/run-stack-demangled-test.sh |  2 +-
 tests/sectiondump.c               |  6 +++---
 tests/varlocs.c                   |  2 +-
 64 files changed, 186 insertions(+), 99 deletions(-)


-- 
ldv

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 01/12] debuginfod: fix spelling typos in error diagnostics and comments
  2020-12-12 16:49 [PATCH 00/12] Fix spelling typos in comments, tests, and text files Dmitry V. Levin
@ 2020-12-12 16:50 ` Dmitry V. Levin
  2020-12-12 16:50 ` [PATCH 02/12] backends: fix spelling typos in comments Dmitry V. Levin
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Dmitry V. Levin @ 2020-12-12 16:50 UTC (permalink / raw)
  To: elfutils-devel

Initalize -> Initialize
Unsucessful -> Unsuccessful
expession -> expression
incompatiblity -> incompatibility

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 debuginfod/ChangeLog           | 7 +++++++
 debuginfod/debuginfod-client.c | 4 ++--
 debuginfod/debuginfod.cxx      | 6 +++---
 3 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog
index 0a7e458f..379af287 100644
--- a/debuginfod/ChangeLog
+++ b/debuginfod/ChangeLog
@@ -1,3 +1,10 @@
+2020-12-12  Dmitry V. Levin  <ldv@altlinux.org>
+
+	* debuginfod-client.c (debuginfod_query_server): Fix spelling typos in
+	comments.
+	* debuginfod.cxx: Likewise.
+	(parse_opt): Fix spelling typos in error diagnostics.
+
 2020-12-08  Dmitry V. Levin  <ldv@altlinux.org>
 
 	* Makefile.am [LIBDEBUGINFOD]: Create libdebuginfod.so.1 first, turn
diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c
index a99f3c14..de26af5b 100644
--- a/debuginfod/debuginfod-client.c
+++ b/debuginfod/debuginfod-client.c
@@ -751,7 +751,7 @@ debuginfod_query_server (debuginfod_client *c,
 
   /* thereafter, goto out1 on error.  */
 
-  /* Initalize handle_data with default values. */
+  /* Initialize handle_data with default values. */
   for (int i = 0; i < num_urls; i++)
     {
       data[i].handle = NULL;
@@ -954,7 +954,7 @@ debuginfod_query_server (debuginfod_client *c,
 
           if (msg->data.result != CURLE_OK)
             {
-              /* Unsucessful query, determine error code.  */
+              /* Unsuccessful query, determine error code.  */
               switch (msg->data.result)
                 {
                 case CURLE_COULDNT_RESOLVE_HOST: rc = -EHOSTUNREACH; break; // no NXDOMAIN
diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx
index 41698787..9a697186 100644
--- a/debuginfod/debuginfod.cxx
+++ b/debuginfod/debuginfod.cxx
@@ -125,7 +125,7 @@ string_endswith(const string& haystack, const string& needle)
 }
 
 
-// Roll this identifier for every sqlite schema incompatiblity.
+// Roll this identifier for every sqlite schema incompatibility.
 #define BUILDIDS "buildids9"
 
 #if SQLITE_VERSION_NUMBER >= 3008000
@@ -521,13 +521,13 @@ parse_opt (int key, char *arg,
       regfree (&file_include_regex);
       rc = regcomp (&file_include_regex, arg, REG_EXTENDED|REG_NOSUB);
       if (rc != 0)
-        argp_failure(state, 1, EINVAL, "regular expession");
+        argp_failure(state, 1, EINVAL, "regular expression");
       break;
     case 'X':
       regfree (&file_exclude_regex);
       rc = regcomp (&file_exclude_regex, arg, REG_EXTENDED|REG_NOSUB);
       if (rc != 0)
-        argp_failure(state, 1, EINVAL, "regular expession");
+        argp_failure(state, 1, EINVAL, "regular expression");
       break;
     case ARGP_KEY_FDCACHE_FDS:
       fdcache_fds = atol (arg);
-- 
ldv

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 02/12] backends: fix spelling typos in comments
  2020-12-12 16:49 [PATCH 00/12] Fix spelling typos in comments, tests, and text files Dmitry V. Levin
  2020-12-12 16:50 ` [PATCH 01/12] debuginfod: fix spelling typos in error diagnostics and comments Dmitry V. Levin
@ 2020-12-12 16:50 ` Dmitry V. Levin
  2020-12-12 16:50 ` [PATCH 03/12] config: fix spelling typos in comments and %changelog Dmitry V. Levin
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Dmitry V. Levin @ 2020-12-12 16:50 UTC (permalink / raw)
  To: elfutils-devel

adress -> address
sigle -> single

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 backends/ChangeLog        | 6 ++++++
 backends/aarch64_retval.c | 2 +-
 backends/ppc_cfi.c        | 2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/backends/ChangeLog b/backends/ChangeLog
index e88dedf9..f22cd57f 100644
--- a/backends/ChangeLog
+++ b/backends/ChangeLog
@@ -1,3 +1,9 @@
+2020-12-12  Dmitry V. Levin  <ldv@altlinux.org>
+
+	* aarch64_retval.c (aarch64_return_value_location): Fix spelling typo
+	in comment.
+	* ppc_cfi.c (ppc_abi_cfi): Likewise.
+
 2020-11-17  Mark Wielard  <mark@klomp.org>
 
 	* x86_64_symbol.c (x86_64_check_reloc_target_type): New function.
diff --git a/backends/aarch64_retval.c b/backends/aarch64_retval.c
index 1308340b..72d4e8a3 100644
--- a/backends/aarch64_retval.c
+++ b/backends/aarch64_retval.c
@@ -332,7 +332,7 @@ aarch64_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
 	      switch (size)
 		{
 		case 2: /* half */
-		case 4: /* sigle */
+		case 4: /* single */
 		case 8: /* double */
 		case 16: /* quad */
 		  return pass_in_simd (locp);
diff --git a/backends/ppc_cfi.c b/backends/ppc_cfi.c
index 55169aef..b4700360 100644
--- a/backends/ppc_cfi.c
+++ b/backends/ppc_cfi.c
@@ -42,7 +42,7 @@ ppc_abi_cfi (Ebl *ebl __attribute__ ((unused)), Dwarf_CIE *abi_info)
     {
       /* This instruction is provided in every CIE.  It is not repeated here:
 	 DW_CFA_def_cfa, ULEB128_7 (1), ULEB128_7 (0)  */
-      /* r1 is assumed to be restored from cfa adress,
+      /* r1 is assumed to be restored from cfa address,
 	 r1 acts as a stack frame pointer.  */
       DW_CFA_val_offset, ULEB128_7 (1), ULEB128_7 (0),
       /* lr is not callee-saved but it needs to be preserved as it is pre-set
-- 
ldv

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 03/12] config: fix spelling typos in comments and %changelog
  2020-12-12 16:49 [PATCH 00/12] Fix spelling typos in comments, tests, and text files Dmitry V. Levin
  2020-12-12 16:50 ` [PATCH 01/12] debuginfod: fix spelling typos in error diagnostics and comments Dmitry V. Levin
  2020-12-12 16:50 ` [PATCH 02/12] backends: fix spelling typos in comments Dmitry V. Levin
@ 2020-12-12 16:50 ` Dmitry V. Levin
  2020-12-12 16:50 ` [PATCH 04/12] libasm: fix spelling typos in comments Dmitry V. Levin
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Dmitry V. Levin @ 2020-12-12 16:50 UTC (permalink / raw)
  To: elfutils-devel

directoy -> directory
fo -> for
funtions -> functions
ist -> is
mutliple -> multiple
priviliges -> privileges
reenable -> re-enable

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 config/10-default-yama-scope.conf |  2 +-
 config/ChangeLog                  |  6 ++++++
 config/elfutils.spec.in           | 12 ++++++------
 config/upload-release.sh          |  2 +-
 4 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/config/10-default-yama-scope.conf b/config/10-default-yama-scope.conf
index ba78ebd5..4df20903 100644
--- a/config/10-default-yama-scope.conf
+++ b/config/10-default-yama-scope.conf
@@ -17,7 +17,7 @@
 # domains. A different way to restrict ptrace is to set the selinux
 # deny_ptrace boolean. Both mechanisms will break some programs relying
 # on the ptrace system call and might force users to elevate their
-# priviliges to root to do their work.
+# privileges to root to do their work.
 #
 # For more information see Documentation/security/Yama.txt in the kernel
 # sources. Which also describes the defaults when CONFIG_SECURITY_YAMA
diff --git a/config/ChangeLog b/config/ChangeLog
index e4da0ebc..f0305985 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,9 @@
+2020-12-12  Dmitry V. Levin  <ldv@altlinux.org>
+
+	* 10-default-yama-scope.conf: Fix spelling typo in comment.
+	* upload-release.sh: Likewise.
+	* elfutils.spec.in: Fix spelling typos in %changelog.
+
 2020-11-04  Dmitry V. Levin  <ldv@altlinux.org>
 
 	* profile.sh.in, profile.csh.in: Do not define $DEBUGINFOD_URLS unless
diff --git a/config/elfutils.spec.in b/config/elfutils.spec.in
index c01b5f88..a8b63517 100644
--- a/config/elfutils.spec.in
+++ b/config/elfutils.spec.in
@@ -421,7 +421,7 @@ exit 0
         CVE-2019-7664, CVE-2019-7665.
 
 * Wed Nov 14 2018 Mark Wielaard <mark@klomp.org> 0.175-1
-- readelf: Handle mutliple .debug_macro sections.
+- readelf: Handle multiple .debug_macro sections.
   Recognize and parse GNU Property notes, NT_VERSION notes and
   GNU Build Attribute ELF Notes.
 - strip: Handle SHT_GROUP correctly.
@@ -780,7 +780,7 @@ exit 0
 
 * Mon Feb 16 2009 Ulrich Drepper <drepper@redhat.com> 0.140-1
 - libelf: Fix regression in creation of section header
-- libdwfl: Less strict behavior if DWARF reader ist just used to
+- libdwfl: Less strict behavior if DWARF reader is just used to
   display data
 
 * Thu Jan 22 2009 Ulrich Drepper <drepper@redhat.com> 0.139-1
@@ -839,8 +839,8 @@ ET_REL
 * Mon Oct 15 2007 Ulrich Drepper <drepper@redhat.com> 0.130-1
 - readelf: -p option can take an argument like -x for one section,
 	 or no argument (as before) for all SHF_STRINGS sections;
-	 new option --archive-index (or -c);	 improved -n output fo
-r core files, on many machines
+	 new option --archive-index (or -c);	 improved -n output for
+core files, on many machines
 - libelf: new function elf_getdata_rawchunk, replaces gelf_rawchunk;
 	new functions gelf_getnote, gelf_getauxv, gelf_update_auxv
 - readelf, elflint: handle SHT_NOTE sections without requiring phdrs
@@ -1006,7 +1006,7 @@ symbols.
 - readelf: improve DWARF output format
 
 * Mon Apr  4 2005 Ulrich Drepper <drepper@redhat.com> 0.106-1
-- libdw: Updated dwarf.h from DWARF3 speclibdw: add new funtions dwarf_f
+- libdw: Updated dwarf.h from DWARF3 speclibdw: add new functions dwarf_f
 unc_entrypc, dwarf_func_file, dwarf_func_line,dwarf_func_col, dwarf_ge
 tsrc_file
 
@@ -1104,7 +1104,7 @@ tsrc_file
 * Wed Jan 22 2003 Jakub Jelinek <jakub@redhat.com> 0.72-4
 - fix arguments to gelf_getsymshndx and elf_getshstrndx
 - fix other warnings
-- reenable checks on s390x
+- re-enable checks on s390x
 
 * Sat Jan 11 2003 Karsten Hopp <karsten@redhat.de> 0.72-3
 - temporarily disable checks on s390x, until someone has
diff --git a/config/upload-release.sh b/config/upload-release.sh
index 18c91c0e..ba43aa1f 100755
--- a/config/upload-release.sh
+++ b/config/upload-release.sh
@@ -20,7 +20,7 @@ echo Make sure the git repo is tagged, signed and pushed
 echo git tag -s -m \"elfutils $VERSION release\" elfutils-$VERSION
 echo git push --tags
 
-# Create a temporary directoy and make sure it is cleaned up.
+# Create a temporary directory and make sure it is cleaned up.
 tempdir=$(mktemp -d) || exit
 trap "rm -rf -- ${tempdir}" EXIT
 
-- 
ldv

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 04/12] libasm: fix spelling typos in comments
  2020-12-12 16:49 [PATCH 00/12] Fix spelling typos in comments, tests, and text files Dmitry V. Levin
                   ` (2 preceding siblings ...)
  2020-12-12 16:50 ` [PATCH 03/12] config: fix spelling typos in comments and %changelog Dmitry V. Levin
@ 2020-12-12 16:50 ` Dmitry V. Levin
  2020-12-12 16:50 ` [PATCH 05/12] libcpu: " Dmitry V. Levin
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Dmitry V. Levin @ 2020-12-12 16:50 UTC (permalink / raw)
  To: elfutils-devel

endianess -> endianness
setion -> section

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 libasm/ChangeLog   | 5 +++++
 libasm/asm_begin.c | 2 +-
 libasm/asm_end.c   | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/libasm/ChangeLog b/libasm/ChangeLog
index 6268b26c..78f1baa4 100644
--- a/libasm/ChangeLog
+++ b/libasm/ChangeLog
@@ -1,3 +1,8 @@
+2020-12-12  Dmitry V. Levin  <ldv@altlinux.org>
+
+	* asm_begin.c (prepare_binary_output): Fix spelling typo in comment.
+	* asm_end.c (binary_end): Likewise.
+
 2020-12-11  Dmitry V. Levin  <ldv@altlinux.org>
 
 	* Makefile.am (GCC_INCLUDE): Remove.
diff --git a/libasm/asm_begin.c b/libasm/asm_begin.c
index 6248786c..1df2d4ea 100644
--- a/libasm/asm_begin.c
+++ b/libasm/asm_begin.c
@@ -98,7 +98,7 @@ prepare_binary_output (AsmCtx_t *result, Ebl *ebl)
   /* Set the ELF version.  */
   ehdr->e_version = EV_CURRENT;
 
-  /* Use the machine, class, and endianess values from the Ebl descriptor.  */
+  /* Use the machine, class, and endianness values from the Ebl descriptor.  */
   ehdr->e_machine = ebl_get_elfmachine (ebl);
   ehdr->e_ident[EI_CLASS] = class;
   ehdr->e_ident[EI_DATA] = ebl_get_elfdata (ebl);
diff --git a/libasm/asm_end.c b/libasm/asm_end.c
index 3b8582fd..077d2aa5 100644
--- a/libasm/asm_end.c
+++ b/libasm/asm_end.c
@@ -257,7 +257,7 @@ binary_end (AsmCtx_t *ctx)
 		    xndxdata->d_off = 0;
 		  }
 
-		/* Store the real section index in the extended setion
+		/* Store the real section index in the extended section
 		   index table.  */
 		assert ((size_t) ptr < ctx->nsymbol_tab + 1);
 		xshndx[ptr] = ndx;
-- 
ldv

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 05/12] libcpu: fix spelling typos in comments
  2020-12-12 16:49 [PATCH 00/12] Fix spelling typos in comments, tests, and text files Dmitry V. Levin
                   ` (3 preceding siblings ...)
  2020-12-12 16:50 ` [PATCH 04/12] libasm: fix spelling typos in comments Dmitry V. Levin
@ 2020-12-12 16:50 ` Dmitry V. Levin
  2020-12-12 16:51 ` [PATCH 06/12] libdw: fix spelling typos in comments and ChangeLog Dmitry V. Levin
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Dmitry V. Levin @ 2020-12-12 16:50 UTC (permalink / raw)
  To: elfutils-devel

layed -> laid
adressing -> addressing

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 libcpu/ChangeLog     | 5 +++++
 libcpu/bpf_disasm.c  | 2 +-
 libcpu/i386_disasm.c | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/libcpu/ChangeLog b/libcpu/ChangeLog
index a342b7f6..000105bf 100644
--- a/libcpu/ChangeLog
+++ b/libcpu/ChangeLog
@@ -1,3 +1,8 @@
+2020-12-12  Dmitry V. Levin  <ldv@altlinux.org>
+
+	* bpf_disasm.c (bswap_bpf_insn): Fix spelling typo in comment.
+	* i386_disasm.c (i386_disasm): Likewise.
+
 2020-05-09  Mark Wielaard  <mark@klomp.org>
 
 	* i386_parse.y (new_bitfield): Call free newp on error.
diff --git a/libcpu/bpf_disasm.c b/libcpu/bpf_disasm.c
index 3d92d014..62643c81 100644
--- a/libcpu/bpf_disasm.c
+++ b/libcpu/bpf_disasm.c
@@ -74,7 +74,7 @@ static void
 bswap_bpf_insn (struct bpf_insn *p)
 {
   /* Note that the dst_reg and src_reg fields are 4-bit bitfields.
-     That means these two nibbles are (typically) layed out in the
+     That means these two nibbles are (typically) laid out in the
      opposite order between big- and little-endian hosts.  This is
      not required by any standard, but does happen to be true for
      at least ppc, s390, arm and mips as big-endian hosts.  */
diff --git a/libcpu/i386_disasm.c b/libcpu/i386_disasm.c
index 32df8cd0..fd7340cc 100644
--- a/libcpu/i386_disasm.c
+++ b/libcpu/i386_disasm.c
@@ -588,7 +588,7 @@ i386_disasm (Ebl *ebl __attribute__((unused)),
 	    }
 
 	  /* We have a match.  First determine how many bytes are
-	     needed for the adressing mode.  */
+	     needed for the addressing mode.  */
 	  param_start = codep;
 	  if (instrtab[cnt].modrm)
 	    {
-- 
ldv

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 06/12] libdw: fix spelling typos in comments and ChangeLog
  2020-12-12 16:49 [PATCH 00/12] Fix spelling typos in comments, tests, and text files Dmitry V. Levin
                   ` (4 preceding siblings ...)
  2020-12-12 16:50 ` [PATCH 05/12] libcpu: " Dmitry V. Levin
@ 2020-12-12 16:51 ` Dmitry V. Levin
  2020-12-12 16:51 ` [PATCH 07/12] libdwelf: fix spelling typos in comments Dmitry V. Levin
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Dmitry V. Levin @ 2020-12-12 16:51 UTC (permalink / raw)
  To: elfutils-devel

Retieve -> Retrieve
apporiate -> appropriate
distinquish -> distinguish
dynamicly -> dynamically
indeces -> indices
lenght -> length
minium -> minimum
occured -> occurred
setion -> section
unknow -> unknown

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 libdw/ChangeLog           | 11 ++++++++++-
 libdw/dwarf.h             |  2 +-
 libdw/dwarf_begin_elf.c   |  2 +-
 libdw/dwarf_getlocation.c |  4 ++--
 libdw/dwarf_getsrclines.c |  2 +-
 libdw/libdw.h             | 10 +++++-----
 libdw/libdwP.h            |  4 ++--
 7 files changed, 22 insertions(+), 13 deletions(-)

diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index 2d552544..ab568f55 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -1,3 +1,12 @@
+2020-12-12  Dmitry V. Levin  <ldv@altlinux.org>
+
+	* dwarf.h: Fix spelling typo in comment.
+	* dwarf_begin_elf.c (dwarf_begin_elf): Likewise.
+	* dwarf_getlocation.c (attr_ok, __libdw_intern_expression): Likewise.
+	* dwarf_getsrclines.c (read_srclines): Likewise.
+	* libdw.h: Fix spelling typos in comments.
+	* libdwP.h: Likewise.
+
 2020-12-09  Dmitry V. Levin  <ldv@altlinux.org>
 
 	* Makefile.am (noinst_PROGRAMS): Rename to noinst_DATA.
@@ -180,7 +189,7 @@
 2019-02-02  Mark Wielaard  <mark@klomp.org>
 
 	* dwarf_nextcu.c (__libdw_next_unit): Define bytes_end.
-	Check there are enough bytes to read extended lenght, version
+	Check there are enough bytes to read extended length, version
 	and unit.
 
 2019-01-20  Mark Wielaard  <mark@klomp.org>
diff --git a/libdw/dwarf.h b/libdw/dwarf.h
index 98b10437..19a4be96 100644
--- a/libdw/dwarf.h
+++ b/libdw/dwarf.h
@@ -1014,7 +1014,7 @@ enum
 /* Section 7.2.2 of the DWARF3 specification defines a range of escape
    codes that can appear in the length field of certain DWARF structures.
 
-   These defines enumerate the minium and maximum values of this range.
+   These defines enumerate the minimum and maximum values of this range.
    Currently only the maximum value is used (to indicate that 64-bit
    values are going to be used in the dwarf data that accompanies the
    structure).  The other values are reserved.
diff --git a/libdw/dwarf_begin_elf.c b/libdw/dwarf_begin_elf.c
index 474ed138..757ac4fa 100644
--- a/libdw/dwarf_begin_elf.c
+++ b/libdw/dwarf_begin_elf.c
@@ -457,7 +457,7 @@ dwarf_begin_elf (Elf *elf, Dwarf_Cmd cmd, Elf_Scn *scngrp)
 	}
 
       /* If the caller provides a section group we get the DWARF
-	 sections only from this setion group.  Otherwise we search
+	 sections only from this section group.  Otherwise we search
 	 for the first section with the required name.  Further
 	 sections with the name are ignored.  The DWARF specification
 	 does not really say this is allowed.  */
diff --git a/libdw/dwarf_getlocation.c b/libdw/dwarf_getlocation.c
index f2bad5a9..4e582db2 100644
--- a/libdw/dwarf_getlocation.c
+++ b/libdw/dwarf_getlocation.c
@@ -50,7 +50,7 @@ attr_ok (Dwarf_Attribute *attr)
 
   /* Otherwise must be one of the attributes listed below.  Older
      DWARF versions might have encoded the exprloc as block, and we
-     cannot easily distinquish attributes in the loclist class because
+     cannot easily distinguish attributes in the loclist class because
      the same forms are used for different classes.  */
   switch (attr->code)
     {
@@ -388,7 +388,7 @@ __libdw_intern_expression (Dwarf *dbg, bool other_byte_order,
 	    invalid:
 	      __libdw_seterrno (DWARF_E_INVALID_DWARF);
 	    returnmem:
-	      /* Free any dynamicly allocated loclists, if any.  */
+	      /* Free any dynamically allocated loclists, if any.  */
 	      while (n > MAX_STACK_LOCS)
 		{
 		  struct loclist *loc = loclist;
diff --git a/libdw/dwarf_getsrclines.c b/libdw/dwarf_getsrclines.c
index 75ec9c79..d6a581ad 100644
--- a/libdw/dwarf_getsrclines.c
+++ b/libdw/dwarf_getsrclines.c
@@ -757,7 +757,7 @@ read_srclines (Dwarf *dbg,
 
 	    case DW_LNE_set_address:
 	      /* The value is an address.  The size is defined as
-		 apporiate for the target machine.  We use the
+		 appropriate for the target machine.  We use the
 		 address size field from the CU header.  */
 	      state.op_index = 0;
 	      if (unlikely (lineendp - linep < (uint8_t) address_size))
diff --git a/libdw/libdw.h b/libdw/libdw.h
index f63cab1b..77174d28 100644
--- a/libdw/libdw.h
+++ b/libdw/libdw.h
@@ -243,7 +243,7 @@ extern Dwarf *dwarf_begin_elf (Elf *elf, Dwarf_Cmd cmd, Elf_Scn *scngrp);
 /* Retrieve ELF descriptor used for DWARF access.  */
 extern Elf *dwarf_getelf (Dwarf *dwarf);
 
-/* Retieve DWARF descriptor used for a Dwarf_Die or Dwarf_Attribute.
+/* Retrieve DWARF descriptor used for a Dwarf_Die or Dwarf_Attribute.
    A Dwarf_Die or a Dwarf_Attribute is associated with a particular
    Dwarf_CU handle.  This function returns the DWARF descriptor for
    that Dwarf_CU.  */
@@ -429,7 +429,7 @@ extern int dwarf_siblingof (Dwarf_Die *die, Dwarf_Die *result)
    given DIE) that isn't a type alias or qualifier type.  Returns 1
    when RESULT contains a type alias or qualifier Dwarf_Die that
    couldn't be peeled further (it doesn't have a DW_TAG_type
-   attribute).  Returns -1 when an error occured.
+   attribute).  Returns -1 when an error occurred.
 
    The current DWARF specification defines one type alias tag
    (DW_TAG_typedef) and seven modifier/qualifier type tags
@@ -696,13 +696,13 @@ extern int dwarf_linediscriminator (Dwarf_Line *line, unsigned int *discp)
 
 
 /* Find line information for address.  The returned string is NULL when
-   an error occured, or the file path.  The file path is either absolute
+   an error occurred, or the file path.  The file path is either absolute
    or relative to the compilation directory.  See dwarf_decl_file.  */
 extern const char *dwarf_linesrc (Dwarf_Line *line,
 				  Dwarf_Word *mtime, Dwarf_Word *length);
 
 /* Return file information.  The returned string is NULL when
-   an error occured, or the file path.  The file path is either absolute
+   an error occurred, or the file path.  The file path is either absolute
    or relative to the compilation directory.  See dwarf_decl_file.  */
 extern const char *dwarf_filesrc (Dwarf_Files *file, size_t idx,
 				  Dwarf_Word *mtime, Dwarf_Word *length);
@@ -900,7 +900,7 @@ extern ptrdiff_t dwarf_getfuncs (Dwarf_Die *cudie,
    directory can be retrieved through:
    dwarf_formstring (dwarf_attr (dwarf_diecu (decl, &cudie, NULL, NULL),
                                  DW_AT_comp_dir, &attr));
-   Returns NULL if no decl_file could be found or an error occured.  */
+   Returns NULL if no decl_file could be found or an error occurred.  */
 extern const char *dwarf_decl_file (Dwarf_Die *decl);
 
 /* Get line number of beginning of given declaration.  */
diff --git a/libdw/libdwP.h b/libdw/libdwP.h
index 36c2acd9..c18eea43 100644
--- a/libdw/libdwP.h
+++ b/libdw/libdwP.h
@@ -68,7 +68,7 @@ struct files_lines_s
   Dwarf_Lines *lines;
 };
 
-/* Valid indeces for the section data.  */
+/* Valid indices for the section data.  */
 enum
   {
     IDX_debug_info = 0,
@@ -438,7 +438,7 @@ __libdw_first_die_from_cu_start (Dwarf_Off cu_start,
         Both signature and type offset are optional.
 
         Note same 4/8 offset size trick as above.
-        We explicitly ignore unknow unit types (see asserts above).  */
+        We explicitly ignore unknown unit types (see asserts above).  */
       off += 3 * offset_size - 4 + 4;
       if (unit_type == DW_UT_skeleton || unit_type == DW_UT_split_compile
 	  || unit_type == DW_UT_type || unit_type == DW_UT_split_type)
-- 
ldv

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 07/12] libdwelf: fix spelling typos in comments
  2020-12-12 16:49 [PATCH 00/12] Fix spelling typos in comments, tests, and text files Dmitry V. Levin
                   ` (5 preceding siblings ...)
  2020-12-12 16:51 ` [PATCH 06/12] libdw: fix spelling typos in comments and ChangeLog Dmitry V. Levin
@ 2020-12-12 16:51 ` Dmitry V. Levin
  2020-12-12 16:51 ` [PATCH 08/12] libdwfl: fix spelling typos in comments and ChangeLog Dmitry V. Levin
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Dmitry V. Levin @ 2020-12-12 16:51 UTC (permalink / raw)
  To: elfutils-devel

algorith -> algorithm
occured -> occurred

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 libdwelf/ChangeLog      | 3 +++
 libdwelf/dwelf_strtab.c | 2 +-
 libdwelf/libdwelf.h     | 4 ++--
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/libdwelf/ChangeLog b/libdwelf/ChangeLog
index 9d05390c..a0ff9f4f 100644
--- a/libdwelf/ChangeLog
+++ b/libdwelf/ChangeLog
@@ -1,5 +1,8 @@
 2020-12-12  Dmitry V. Levin  <ldv@altlinux.org>
 
+	* libdwelf.h: Fix spelling typos in comments.
+	* dwelf_strtab.c (newstring): Likewise.
+
 	* dwelf_elf_e_machine_string.c (dwelf_elf_e_machine_string): Fix
 	spelling typos in returned strings.
 
diff --git a/libdwelf/dwelf_strtab.c b/libdwelf/dwelf_strtab.c
index 01e091c8..c6ae7cdf 100644
--- a/libdwelf/dwelf_strtab.c
+++ b/libdwelf/dwelf_strtab.c
@@ -183,7 +183,7 @@ newstring (Dwelf_Strtab *st, const char *str, size_t len)
 
 
 /* XXX This function should definitely be rewritten to use a balancing
-   tree algorith (AVL, red-black trees).  For now a simple, correct
+   tree algorithm (AVL, red-black trees).  For now a simple, correct
    implementation is enough.  */
 static Dwelf_Strent **
 searchstring (Dwelf_Strent **sep, Dwelf_Strent *newstr)
diff --git a/libdwelf/libdwelf.h b/libdwelf/libdwelf.h
index dbb8f08c..263ca60e 100644
--- a/libdwelf/libdwelf.h
+++ b/libdwelf/libdwelf.h
@@ -44,7 +44,7 @@ extern "C" {
 /* Returns the name and the CRC32 of the separate debug file from the
    .gnu_debuglink section if found in the ELF.  Return NULL if the ELF
    file didn't have a .gnu_debuglink section, had malformed data in the
-   section or some other error occured.  */
+   section or some other error occurred.  */
 extern const char *dwelf_elf_gnu_debuglink (Elf *elf, GElf_Word *crc);
 
 /* Returns the name and build ID from the .gnu_debugaltlink section if
@@ -69,7 +69,7 @@ extern ssize_t dwelf_elf_gnu_build_id (Elf *elf, const void **build_idp);
    section.  The section name should start with .zdebug (but this
    isn't checked by this function).  If the section isn't compressed
    (the section data doesn't start with ZLIB) -1 is returned. If an
-   error occured -1 is returned and elf_errno is set.  */
+   error occurred -1 is returned and elf_errno is set.  */
 extern ssize_t dwelf_scn_gnu_compressed_size (Elf_Scn *scn);
 
 /* ELF/DWARF string table handling.  */
-- 
ldv

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 08/12] libdwfl: fix spelling typos in comments and ChangeLog
  2020-12-12 16:49 [PATCH 00/12] Fix spelling typos in comments, tests, and text files Dmitry V. Levin
                   ` (6 preceding siblings ...)
  2020-12-12 16:51 ` [PATCH 07/12] libdwelf: fix spelling typos in comments Dmitry V. Levin
@ 2020-12-12 16:51 ` Dmitry V. Levin
  2020-12-12 16:52 ` [PATCH 09/12] libelf: fix spelling typos in comments Dmitry V. Levin
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Dmitry V. Levin @ 2020-12-12 16:51 UTC (permalink / raw)
  To: elfutils-devel

adresses -> addresses
boundery -> boundary
explictly -> explicitly
fo -> for
layed -> laid
partical -> particular
setion -> section
substract -> subtract
wil -> will

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 libdwfl/ChangeLog              | 13 ++++++++++---
 libdwfl/dwfl_module_getdwarf.c |  4 ++--
 libdwfl/dwfl_report_elf.c      |  2 +-
 libdwfl/libdwfl.h              |  8 ++++----
 libdwfl/linux-pid-attach.c     |  2 +-
 5 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index c7f81acd..fc64eafd 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -1,3 +1,10 @@
+2020-12-12  Dmitry V. Levin  <ldv@altlinux.org>
+
+	* libdwfl.h: Fix spelling typos in comments.
+	* dwfl_module_getdwarf.c (open_elf, find_symtab): Likewise.
+	* dwfl_report_elf.c (__libdwfl_elf_address_range): Likewise.
+	* linux-pid-attach.c (read_cached_memory): Likewise.
+
 2020-12-07  Timm Bäder  <tbaeder@redhat.com>
 
 	* link_map.c (report_r_debug): Pull read_addrs() function into
@@ -816,7 +823,7 @@
 	* link_map.c (check32): Use read_4ubyte_unaligned_noncvt to read
 	type and value.
 	(read_addrs): Use read_(4|8)ubyte_unaligned_noncvt or to read
-	adresses.
+	addresses.
 
 2015-05-30  Mark Wielaard  <mjw@redhat.com>
 
@@ -1738,7 +1745,7 @@
 
 2013-01-23  Mark Wielaard  <mjw@redhat.com>
 
-	* dwfl_module_getdwarf.c (find_aux_sym): Don't substract one
+	* dwfl_module_getdwarf.c (find_aux_sym): Don't subtract one
 	from aux_syments by default.
 	(find_symtab): Also succeed when only aux_symdata is found.
 	When no symtab is found always try to load auxiliary table.
@@ -1746,7 +1753,7 @@
 	tables have symbols.
 	* dwfl_module_getsym.c (dwfl_module_getsym): Only skip auxiliary
 	zero entry when both tables have symbols.
-	* dwfl_module_addrsym.c (dwfl_module_addrsym): Only substract
+	* dwfl_module_addrsym.c (dwfl_module_addrsym): Only subtract
 	one from first_global when both tables have symbols.
 
 2013-01-16  Mark Wielaard  <mjw@redhat.com>
diff --git a/libdwfl/dwfl_module_getdwarf.c b/libdwfl/dwfl_module_getdwarf.c
index 56e61054..2f3dd0dd 100644
--- a/libdwfl/dwfl_module_getdwarf.c
+++ b/libdwfl/dwfl_module_getdwarf.c
@@ -145,7 +145,7 @@ open_elf (Dwfl_Module *mod, struct dwfl_file *file)
 	}
     }
 
-  /* We only want to set the module e_type explictly once, derived from
+  /* We only want to set the module e_type explicitly once, derived from
      the main ELF file.  (It might be changed for the kernel, because
      that is special - see below.)  open_elf is always called first for
      the main ELF file, because both find_dw and find_symtab call
@@ -1141,7 +1141,7 @@ find_symtab (Dwfl_Module *mod)
 
   /* Cache the data; MOD->syments and MOD->first_global were set
      above.  If any of the sections is compressed, uncompress it
-     first.  Only the string data setion could theoretically be
+     first.  Only the string data section could theoretically be
      compressed GNU style (as .zdebug_str).  Everything else only ELF
      gabi style (SHF_COMPRESSED).  */
 
diff --git a/libdwfl/dwfl_report_elf.c b/libdwfl/dwfl_report_elf.c
index 3fc9384a..9da86698 100644
--- a/libdwfl/dwfl_report_elf.c
+++ b/libdwfl/dwfl_report_elf.c
@@ -85,7 +85,7 @@ __libdwfl_elf_address_range (Elf *elf, GElf_Addr base, bool add_p_vaddr,
 	      const GElf_Addr next = (end + align - 1) & -align;
 	      if (shdr->sh_addr == 0
 		  /* Once we've started doing layout we have to do it all,
-		     unless we just layed out the first section at 0 when
+		     unless we just laid out the first section at 0 when
 		     it already was at 0.  */
 		  || (bias == 0 && end > start && end != next))
 		{
diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h
index d5fa06d4..f98f1d52 100644
--- a/libdwfl/libdwfl.h
+++ b/libdwfl/libdwfl.h
@@ -42,7 +42,7 @@ typedef struct Dwfl_Module Dwfl_Module;
 typedef struct Dwfl_Line Dwfl_Line;
 
 /* This holds information common for all the frames of one backtrace for
-   a partical thread/task/TID.  Several threads belong to one Dwfl.  */
+   a particular thread/task/TID.  Several threads belong to one Dwfl.  */
 typedef struct Dwfl_Thread Dwfl_Thread;
 
 /* This holds everything we know about the state of the frame at a particular
@@ -471,7 +471,7 @@ extern const char *dwfl_module_addrname (Dwfl_Module *mod, GElf_Addr address);
 
 /* Find the symbol associated with ADDRESS.  Return its name or NULL
    when nothing was found.  If the architecture uses function
-   descriptors, and symbol st_value points to one, ADDRESS wil be
+   descriptors, and symbol st_value points to one, ADDRESS will be
    matched against either the adjusted st_value or the associated
    function entry value as described in dwfl_module_getsym_info.  If
    OFFSET is not NULL it will be filled in with the difference from
@@ -556,7 +556,7 @@ extern Dwarf_Die *dwfl_module_nextcu (Dwfl_Module *mod,
 extern Dwfl_Module *dwfl_cumodule (Dwarf_Die *cudie);
 
 
-/* Cache the source line information fo the CU and return the
+/* Cache the source line information for the CU and return the
    number of Dwfl_Line entries it has.  */
 extern int dwfl_getsrclines (Dwarf_Die *cudie, size_t *nlines);
 
@@ -789,7 +789,7 @@ int dwfl_getthread_frames (Dwfl *dwfl, pid_t tid,
 
 /* Return *PC (program counter) for thread-specific frame STATE.
    Set *ISACTIVATION according to DWARF frame "activation" definition.
-   Typically you need to substract 1 from *PC if *ACTIVATION is false to safely
+   Typically you need to subtract 1 from *PC if *ACTIVATION is false to safely
    find function of the caller.  ACTIVATION may be NULL.  PC must not be NULL.
    Function returns false if it failed to find *PC.  */
 bool dwfl_frame_pc (Dwfl_Frame *state, Dwarf_Addr *pc, bool *isactivation)
diff --git a/libdwfl/linux-pid-attach.c b/libdwfl/linux-pid-attach.c
index b23139d9..fdf5c9b1 100644
--- a/libdwfl/linux-pid-attach.c
+++ b/libdwfl/linux-pid-attach.c
@@ -124,7 +124,7 @@ read_cached_memory (struct __libdwfl_pid_arg *pid_arg,
 		    Dwarf_Addr addr, Dwarf_Word *result)
 {
   /* Let the ptrace fallback deal with the corner case of the address
-     possibly crossing a page boundery.  */
+     possibly crossing a page boundary.  */
   if ((addr & ((Dwarf_Addr)__LIBDWFL_REMOTE_MEM_CACHE_SIZE - 1))
       > (Dwarf_Addr)__LIBDWFL_REMOTE_MEM_CACHE_SIZE - sizeof (unsigned long))
     return false;
-- 
ldv

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 09/12] libelf: fix spelling typos in comments
  2020-12-12 16:49 [PATCH 00/12] Fix spelling typos in comments, tests, and text files Dmitry V. Levin
                   ` (7 preceding siblings ...)
  2020-12-12 16:51 ` [PATCH 08/12] libdwfl: fix spelling typos in comments and ChangeLog Dmitry V. Levin
@ 2020-12-12 16:52 ` Dmitry V. Levin
  2020-12-12 16:52 ` [PATCH 10/12] src: fix spelling typos in comments and ChangeLog Dmitry V. Levin
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Dmitry V. Levin @ 2020-12-12 16:52 UTC (permalink / raw)
  To: elfutils-devel

Auxialiary -> Auxiliary
constucted -> constructed
desriptor -> descriptor
endianess -> endianness
responsibilty -> responsibility
sufficent -> sufficient

elf.h comes from glibc and therefore is excluded.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 libelf/ChangeLog          | 11 +++++++++++
 libelf/common.h           |  2 +-
 libelf/elf32_checksum.c   |  2 +-
 libelf/elf_begin.c        |  4 ++--
 libelf/elf_compress.c     |  2 +-
 libelf/elf_compress_gnu.c |  2 +-
 libelf/gelf.h             |  2 +-
 libelf/libelf.h           |  2 +-
 libelf/libelfP.h          |  2 +-
 9 files changed, 20 insertions(+), 9 deletions(-)

diff --git a/libelf/ChangeLog b/libelf/ChangeLog
index 38c0162a..41727fbd 100644
--- a/libelf/ChangeLog
+++ b/libelf/ChangeLog
@@ -1,3 +1,14 @@
+2020-12-12  Dmitry V. Levin  <ldv@altlinux.org>
+
+	* common.h: Fix spelling typo in comment.
+	* gelf.h: Likewise.
+	* libelf.h: Likewise.
+	* libelfP.h: Likewise.
+	* elf32_checksum.c (elfw2): Likewise.
+	* elf_begin.c (dup_elf, write_file): Likewise.
+	* elf_compress.c (__libelf_compress): Likewise.
+	* elf_compress_gnu.c (elf_compress_gnu): Likewise.
+
 2020-12-11  Dmitry V. Levin  <ldv@altlinux.org>
 
 	* Makefile.am (GCC_INCLUDE): Remove.
diff --git a/libelf/common.h b/libelf/common.h
index b0175f60..e41c717d 100644
--- a/libelf/common.h
+++ b/libelf/common.h
@@ -133,7 +133,7 @@ libelf_release_all (Elf *elf)
 }
 
 
-/* Macro to convert endianess in place.  It determines the function it
+/* Macro to convert endianness in place.  It determines the function it
    has to use itself.  */
 #define CONVERT(Var) \
   (Var) = (sizeof (Var) == 1						      \
diff --git a/libelf/elf32_checksum.c b/libelf/elf32_checksum.c
index f9dfccb2..c5f27bbe 100644
--- a/libelf/elf32_checksum.c
+++ b/libelf/elf32_checksum.c
@@ -115,7 +115,7 @@ elfw2(LIBELFBITS,checksum) (Elf *elf)
 
       /* To compute the checksum we need to get to the data.  For
 	 repeatable results we must use the external format.  The data
-	 we get with 'elf'getdata' might be changed for endianess
+	 we get with 'elf'getdata' might be changed for endianness
 	 reasons.  Therefore we use 'elf_rawdata' if possible.  But
 	 this function can fail if the data was constructed by the
 	 program.  In this case we have to use 'elf_getdata' and
diff --git a/libelf/elf_begin.c b/libelf/elf_begin.c
index 8107a103..43828c9a 100644
--- a/libelf/elf_begin.c
+++ b/libelf/elf_begin.c
@@ -1040,7 +1040,7 @@ dup_elf (int fildes, Elf_Cmd cmd, Elf *ref)
     }
 
   /* This is an archive.  We must create a descriptor for the archive
-     member the internal pointer of the archive file desriptor is
+     member the internal pointer of the archive file descriptor is
      pointing to.  First read the header of the next member if this
      has not happened already.  */
   if (ref->state.ar.elf_ar_hdr.ar_name == NULL
@@ -1064,7 +1064,7 @@ dup_elf (int fildes, Elf_Cmd cmd, Elf *ref)
 }
 
 
-/* Return desriptor for empty file ready for writing.  */
+/* Return descriptor for empty file ready for writing.  */
 static struct Elf *
 write_file (int fd, Elf_Cmd cmd)
 {
diff --git a/libelf/elf_compress.c b/libelf/elf_compress.c
index 9d6f15c0..df0144e8 100644
--- a/libelf/elf_compress.c
+++ b/libelf/elf_compress.c
@@ -124,7 +124,7 @@ __libelf_compress (Elf_Scn *scn, size_t hsize, int ei_data,
   int flush = Z_NO_FLUSH;
   do
     {
-      /* Convert to raw if different endianess.  */
+      /* Convert to raw if different endianness.  */
       cdata = *data;
       bool convert = ei_data != MY_ELFDATA && data->d_size > 0;
       if (convert)
diff --git a/libelf/elf_compress_gnu.c b/libelf/elf_compress_gnu.c
index 7aed4640..3d2977e7 100644
--- a/libelf/elf_compress_gnu.c
+++ b/libelf/elf_compress_gnu.c
@@ -143,7 +143,7 @@ elf_compress_gnu (Elf_Scn *scn, int inflate, unsigned int flags)
     }
   else if (inflate == 0)
     {
-      /* In theory the user could have constucted a compressed section
+      /* In theory the user could have constructed a compressed section
 	 by hand.  And in practice they do. For example when copying
 	 a section from one file to another using elf_newdata. So we
 	 have to use elf_getdata (not elf_rawdata).  */
diff --git a/libelf/gelf.h b/libelf/gelf.h
index 06198803..7a3c87aa 100644
--- a/libelf/gelf.h
+++ b/libelf/gelf.h
@@ -95,7 +95,7 @@ typedef Elf64_Dyn GElf_Dyn;
 /* Version definition sections.  */
 typedef Elf64_Verdef GElf_Verdef;
 
-/* Auxialiary version information.  */
+/* Auxiliary version information.  */
 typedef Elf64_Verdaux GElf_Verdaux;
 
 /* Version dependency section.  */
diff --git a/libelf/libelf.h b/libelf/libelf.h
index 1ff11c95..a139e733 100644
--- a/libelf/libelf.h
+++ b/libelf/libelf.h
@@ -376,7 +376,7 @@ extern Elf64_Chdr *elf64_getchdr (Elf_Scn *__scn);
    It is always an error to call these functions on SHT_NOBITS
    sections or if the section has the SHF_ALLOC flag set.
    elf_compress_gnu will not check whether the section name starts
-   with ".debug" or .zdebug".  It is the responsibilty of the caller
+   with ".debug" or .zdebug".  It is the responsibility of the caller
    to make sure the deprecated GNU compression method is only called
    on correctly named sections (and to change the name of the section
    when using elf_compress_gnu).
diff --git a/libelf/libelfP.h b/libelf/libelfP.h
index 6a3243de..b8ffa18d 100644
--- a/libelf/libelfP.h
+++ b/libelf/libelfP.h
@@ -148,7 +148,7 @@ enum
 };
 
 
-/* The visible `Elf_Data' type is not sufficent for some operations due
+/* The visible `Elf_Data' type is not sufficient for some operations due
    to a misdesigned interface.  Extend it for internal purposes.  */
 typedef struct
 {
-- 
ldv

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 10/12] src: fix spelling typos in comments and ChangeLog
  2020-12-12 16:49 [PATCH 00/12] Fix spelling typos in comments, tests, and text files Dmitry V. Levin
                   ` (8 preceding siblings ...)
  2020-12-12 16:52 ` [PATCH 09/12] libelf: fix spelling typos in comments Dmitry V. Levin
@ 2020-12-12 16:52 ` Dmitry V. Levin
  2020-12-12 16:52 ` [PATCH 11/12] tests: fix spelling typos in error diagnostics and comments Dmitry V. Levin
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Dmitry V. Levin @ 2020-12-12 16:52 UTC (permalink / raw)
  To: elfutils-devel

Indeces -> Indices
adress -> address
affort -> afford
dont' -> don't
futher -> further
higest -> highest
indeces -> indices
interate -> iterate
occured -> occurred
overlow -> overflow
sectin -> section
succesful -> successful
teminated -> terminated

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 src/ChangeLog     | 14 ++++++++++++--
 src/ar.c          |  4 ++--
 src/elfclassify.c |  6 +++---
 src/elfcompress.c |  2 +-
 src/elflint.c     |  6 +++---
 src/readelf.c     |  6 +++---
 src/size.c        |  2 +-
 src/strings.c     |  2 +-
 src/strip.c       |  2 +-
 9 files changed, 27 insertions(+), 17 deletions(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index 0349f5c7..f5a02a36 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,15 @@
 2020-12-12  Dmitry V. Levin  <ldv@altlinux.org>
 
+	* ar.c (write_member, do_oper_insert): Fix spelling typo in comment.
+	* elfclassify.c (issue, elf_issue, is_unstripped): Likewise.
+	* elfcompress.c (process_file): Likewise.
+	* elflint.c (be_quiet, check_gnu_hash): Likewise.
+	* readelf.c (print_phdr, handle_gnu_hash,
+	dwarf_locexpr_opcode_string): Likewise.
+	* size.c (totals_class): Likewise.
+	* strings.c (read_elf): Likewise.
+	* strip.c (handle_elf): Likewise.
+
 	* readelf.c (print_debug_addr_section): Fix spelling typo in error
 	diagnostics.
 	* strip.c (options): Fix spelling typos in argp help text.
@@ -2798,7 +2808,7 @@
 	(show_symbols_posix): Likewise.
 	(show_symbols): Adjust calls to show_symbols_bsd and
 	show_symbols_posix.
-	(show_symbols_sysv): Avoid printing adress and size for undefined
+	(show_symbols_sysv): Avoid printing address and size for undefined
 	symbols.  Don't print initial special entry and section entries.
 
 2011-10-02  Ulrich Drepper  <drepper@gmail.com>
@@ -3634,7 +3644,7 @@
 
 	* elflint.c (check_group): Check that signature symbol for section
 	group is not an empty string.
-	* ldgeneric.c: Remove magic assignment of indeces in the dynsym
+	* ldgeneric.c: Remove magic assignment of indices in the dynsym
 	section.  Start implementation of --hash-style.
 	* i386_ld.c: Likewise.
 	* ld.c: Recognize --hash-style.
diff --git a/src/ar.c b/src/ar.c
index 7d33d814..1a8e0d6e 100644
--- a/src/ar.c
+++ b/src/ar.c
@@ -848,7 +848,7 @@ write_member (struct armem *memb, off_t *startp, off_t *lenp, Elf *elf,
 	      off_t end_off, int newfd)
 {
   struct ar_hdr arhdr;
-  /* The ar_name is not actually zero teminated, but we need that for
+  /* The ar_name is not actually zero terminated, but we need that for
      snprintf.  Also if the name is too long, then the string starts
      with '/' plus an index off number (decimal).  */
   char tmpbuf[sizeof (arhdr.ar_name) + 2];
@@ -1458,7 +1458,7 @@ do_oper_insert (int oper, const char *arfname, char **argv, int argc,
 
 	      /* Create the header.  */
 	      struct ar_hdr arhdr;
-	      /* The ar_name is not actually zero teminated, but we
+	      /* The ar_name is not actually zero terminated, but we
 		 need that for snprintf.  Also if the name is too
 		 long, then the string starts with '/' plus an index
 		 off number (decimal).  */
diff --git a/src/elfclassify.c b/src/elfclassify.c
index 624bb861..ae626bb1 100644
--- a/src/elfclassify.c
+++ b/src/elfclassify.c
@@ -51,7 +51,7 @@ static int file_fd = -1;
 /* Set by issue or elf_issue.  */
 static bool issue_found;
 
-/* Non-fatal issue occured while processing the current_path.  */
+/* Non-fatal issue occurred while processing the current_path.  */
 static void
 issue (int e, const char *msg)
 {
@@ -65,7 +65,7 @@ issue (int e, const char *msg)
   issue_found = true;
 }
 
-/* Non-fatal issue occured while processing the current ELF.  */
+/* Non-fatal issue occurred while processing the current ELF.  */
 static void
 elf_issue (const char *msg)
 {
@@ -464,7 +464,7 @@ is_loadable (void)
 }
 
 /* Return true if the file is an ELF file which has a symbol table or
-   .debug_* sections (and thus can be stripped futher).  */
+   .debug_* sections (and thus can be stripped further).  */
 static bool
 is_unstripped (void)
 {
diff --git a/src/elfcompress.c b/src/elfcompress.c
index 6ba6af41..1b5b1e36 100644
--- a/src/elfcompress.c
+++ b/src/elfcompress.c
@@ -345,7 +345,7 @@ process_file (const char *fname)
       return cleanup (-1);
     }
 
-  /* We dont' handle ar files (or anything else), we probably should.  */
+  /* We don't handle ar files (or anything else), we probably should.  */
   Elf_Kind kind = elf_kind (elf);
   if (kind != ELF_K_ELF)
     {
diff --git a/src/elflint.c b/src/elflint.c
index ef3e3732..6e219ced 100644
--- a/src/elflint.c
+++ b/src/elflint.c
@@ -107,7 +107,7 @@ static unsigned int error_count;
 /* True if we should perform very strict testing.  */
 static bool be_strict;
 
-/* True if no message is to be printed if the run is succesful.  */
+/* True if no message is to be printed if the run is successful.  */
 static bool be_quiet;
 
 /* True if binary is from strip -f, not a normal ELF file.  */
@@ -2161,7 +2161,7 @@ section [%2d] '%s': bitmask size zero or not power of 2: %u\n"),
   Elf32_Word shift = ((Elf32_Word *) data->d_buf)[3];
 
   /* Is there still room for the sym chain?
-     Use uint64_t calculation to prevent 32bit overlow.  */
+     Use uint64_t calculation to prevent 32bit overflow.  */
   uint64_t used_buf = (4ULL + bitmask_words + nbuckets) * sizeof (Elf32_Word);
   if (used_buf > data->d_size)
     {
@@ -3675,7 +3675,7 @@ static const struct
 	       sizeof string - (prefix ? 1 : 0)))
 
 
-/* Indeces of some sections we need later.  */
+/* Indices of some sections we need later.  */
 static size_t eh_frame_hdr_scnndx;
 static size_t eh_frame_scnndx;
 static size_t gcc_except_table_scnndx;
diff --git a/src/readelf.c b/src/readelf.c
index 183e6972..f51b41d7 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -1548,7 +1548,7 @@ print_phdr (Ebl *ebl, GElf_Ehdr *ehdr)
 	      printf (" %s",
 		      elf_strptr (ebl->elf, shstrndx, shdr->sh_name));
 
-	      /* Signal that this sectin is only partially covered.  */
+	      /* Signal that this section is only partially covered.  */
 	      if (has_relro && in_relro
 		       && shdr->sh_addr + shdr->sh_size > relro_to)
 		{
@@ -3392,7 +3392,7 @@ handle_gnu_hash (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr, size_t shstrndx)
   Elf32_Word shift = ((Elf32_Word *) data->d_buf)[3];
 
   /* Is there still room for the sym chain?
-     Use uint64_t calculation to prevent 32bit overlow.  */
+     Use uint64_t calculation to prevent 32bit overflow.  */
   uint64_t used_buf = (4ULL + bitmask_words + nbucket) * sizeof (Elf32_Word);
   uint32_t max_nsyms = (data->d_size - used_buf) / sizeof (Elf32_Word);
   if (used_buf > data->d_size)
@@ -4055,7 +4055,7 @@ dwarf_locexpr_opcode_string (unsigned int code)
 {
   static const char *const known[] =
     {
-      /* Normally we can't affort building huge table of 64K entries,
+      /* Normally we can't afford building huge table of 64K entries,
 	 most of them zero, just because there are a couple defined
 	 values at the far end.  In case of opcodes, it's OK.  */
 #define DWARF_ONE_KNOWN_DW_OP(NAME, CODE) [CODE] = #NAME,
diff --git a/src/size.c b/src/size.c
index e49b64b8..9eeb83c1 100644
--- a/src/size.c
+++ b/src/size.c
@@ -145,7 +145,7 @@ static const int length_map[2][3] =
 
 /* True if total sizes should be printed.  */
 static bool totals;
-/* To print the total sizes in a reasonable format remember the higest
+/* To print the total sizes in a reasonable format remember the highest
    "class" of ELF binaries processed.  */
 static int totals_class;
 
diff --git a/src/strings.c b/src/strings.c
index 8e259211..f3d115c6 100644
--- a/src/strings.c
+++ b/src/strings.c
@@ -698,7 +698,7 @@ read_elf (Elf *elf, int fd, const char *fname, off_t fdlen)
 
   /* We will look at each section separately.  The ELF file is not
      mmapped.  The libelf implementation will load the needed parts on
-     demand.  Since we only interate over the section header table the
+     demand.  Since we only iterate over the section header table the
      memory consumption at this stage is kept minimal.  */
   Elf_Scn *scn = elf_nextscn (elf, NULL);
   if (scn == NULL)
diff --git a/src/strip.c b/src/strip.c
index 9dbdf5d9..d211cde6 100644
--- a/src/strip.c
+++ b/src/strip.c
@@ -1832,7 +1832,7 @@ handle_elf (int fd, Elf *elf, const char *prefix, const char *fname,
 	shdr_info[cnt].shdr.sh_name = dwelf_strent_off (shdr_info[cnt].se);
 
 	/* Update the section header from the input file.  Some fields
-	   might be section indeces which now have to be adjusted.  Keep
+	   might be section indices which now have to be adjusted.  Keep
 	   the index to the "current" sh_link in case we need it to lookup
 	   symbol table names.  */
 	size_t sh_link = shdr_info[cnt].shdr.sh_link;
-- 
ldv

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 11/12] tests: fix spelling typos in error diagnostics and comments
  2020-12-12 16:49 [PATCH 00/12] Fix spelling typos in comments, tests, and text files Dmitry V. Levin
                   ` (9 preceding siblings ...)
  2020-12-12 16:52 ` [PATCH 10/12] src: fix spelling typos in comments and ChangeLog Dmitry V. Levin
@ 2020-12-12 16:52 ` Dmitry V. Levin
  2020-12-12 16:52 ` [PATCH 12/12] Fix spelling typos in NEWS, NOTES, TODO, and in comments of configure.ac Dmitry V. Levin
  2020-12-12 17:17 ` [PATCH 00/12] Fix spelling typos in comments, tests, and text files Mark Wielaard
  12 siblings, 0 replies; 14+ messages in thread
From: Dmitry V. Levin @ 2020-12-12 16:52 UTC (permalink / raw)
  To: elfutils-devel

Cannnot -> Cannot
decriptors -> descriptors
experssions -> expressions
explit -> explicit
falg -> flag
irrelevent -> irrelevant
mininum -> minimum
outselves -> ourselves
proces -> process
versio -> version

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 tests/ChangeLog                   | 11 +++++++++++
 tests/dwarf-die-addr-die.c        |  2 +-
 tests/dwfl-bug-fd-leak.c          |  2 +-
 tests/elfstrmerge.c               |  4 ++--
 tests/run-lfs-symbols.sh          |  2 +-
 tests/run-readelf-line.sh         |  2 +-
 tests/run-stack-demangled-test.sh |  2 +-
 tests/sectiondump.c               |  6 +++---
 tests/varlocs.c                   |  2 +-
 9 files changed, 22 insertions(+), 11 deletions(-)

diff --git a/tests/ChangeLog b/tests/ChangeLog
index a3813ddc..2c83f690 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,14 @@
+2020-12-12  Dmitry V. Levin  <ldv@altlinux.org>
+
+	* dwarf-die-addr-die.c (main): Fix spelling typo in error diagnostics.
+	* run-lfs-symbols.sh: Likewise.
+	* elfstrmerge.c (main): Fix spelling typos in comments.
+	* dwfl-bug-fd-leak.c: Likewise.
+	* run-readelf-line.sh: Likewise.
+	* run-stack-demangled-test.sh: Likewise.
+	* sectiondump.c (main): Likewise.
+	* varlocs.c (handle_die): Likewise.
+
 2020-12-11  Dmitry V. Levin  <ldv@altlinux.org>
 
 	* configure.ac: Remove.
diff --git a/tests/dwarf-die-addr-die.c b/tests/dwarf-die-addr-die.c
index 7899988f..24bfbeb7 100644
--- a/tests/dwarf-die-addr-die.c
+++ b/tests/dwarf-die-addr-die.c
@@ -164,7 +164,7 @@ main (int argc, char *argv[])
   int fd = open (name, O_RDONLY);
   if (fd < 0)
     {
-      printf ("Cannnot open '%s': %s\n", name, strerror (errno));
+      printf ("Cannot open '%s': %s\n", name, strerror (errno));
       return -1;
     }
 
diff --git a/tests/dwfl-bug-fd-leak.c b/tests/dwfl-bug-fd-leak.c
index b0913361..7554d6ec 100644
--- a/tests/dwfl-bug-fd-leak.c
+++ b/tests/dwfl-bug-fd-leak.c
@@ -1,4 +1,4 @@
-/* Test program for libdwfl file decriptors leakage.
+/* Test program for libdwfl file descriptors leakage.
    Copyright (C) 2007, 2008 Red Hat, Inc.
    This file is part of elfutils.
 
diff --git a/tests/elfstrmerge.c b/tests/elfstrmerge.c
index ba0d68df..abbdf3fd 100644
--- a/tests/elfstrmerge.c
+++ b/tests/elfstrmerge.c
@@ -332,7 +332,7 @@ main (int argc, char **argv)
     if (unlikely (secndx == 0 || secndx == shdrstrndx || secndx >= shdrnum))
       {
 	/* Don't use fail... too specialized messages.  Call release
-	   outselves and then error.  Ignores midx if widx is
+	   ourselves and then error.  Ignores midx if widx is
 	   zero.  */
 	release ();
 	if (widx == 0)
@@ -543,7 +543,7 @@ main (int argc, char **argv)
 	      {
 		new_data_buf (newdata);
 		/* A section group contains Elf32_Words. The first
-		   word is a falg value, the rest of the words are
+		   word is a flag value, the rest of the words are
 		   indexes of the sections belonging to the group.  */
 		Elf32_Word *group = (Elf32_Word *) data->d_buf;
 		Elf32_Word *newgroup = (Elf32_Word *) newdata->d_buf;
diff --git a/tests/run-lfs-symbols.sh b/tests/run-lfs-symbols.sh
index 7398e7f4..762a5d96 100755
--- a/tests/run-lfs-symbols.sh
+++ b/tests/run-lfs-symbols.sh
@@ -18,7 +18,7 @@
 . $srcdir/test-subr.sh
 
 if ! grep -q -F '#define _FILE_OFFSET_BITS' ${abs_top_builddir}/config.h; then
-  echo "LFS testing is irrelevent on this system"
+  echo "LFS testing is irrelevant on this system"
   exit 77
 fi
 
diff --git a/tests/run-readelf-line.sh b/tests/run-readelf-line.sh
index a95e6aa9..eef50e9d 100755
--- a/tests/run-readelf-line.sh
+++ b/tests/run-readelf-line.sh
@@ -262,7 +262,7 @@ DWARF section [30] '.debug_line' at offset 0x15f6:
 
 EOF
 
-# A .debug_line table with mininum instruction length > 1.
+# A .debug_line table with minimum instruction length > 1.
 #
 # = hello.c
 # #include <stdio.h>
diff --git a/tests/run-stack-demangled-test.sh b/tests/run-stack-demangled-test.sh
index c26918f9..ac5bc617 100755
--- a/tests/run-stack-demangled-test.sh
+++ b/tests/run-stack-demangled-test.sh
@@ -24,7 +24,7 @@ fi
 
 # See run-stack-d-test.sh and run-stack-i-test.sh
 # Same tests, now with demangler support, no -r, and without -d.
-# Only change in output is an explit fu(int) instead of _Z2fui.
+# Only change in output is an explicit fu(int) instead of _Z2fui.
 
 testfiles testfiledwarfinlines testfiledwarfinlines.core
 
diff --git a/tests/sectiondump.c b/tests/sectiondump.c
index f33484f9..661e6440 100644
--- a/tests/sectiondump.c
+++ b/tests/sectiondump.c
@@ -49,7 +49,7 @@ main (int argc, char *argv[])
   if (fd == -1)
     error (EXIT_FAILURE, errno, "cannot open input file `%s'", argv[1]);
 
-  /* Set the library versio we expect.  */
+  /* Set the library version we expect.  */
   elf_version (EV_CURRENT);
 
   /* Create the ELF descriptor.  */
@@ -58,7 +58,7 @@ main (int argc, char *argv[])
     error (EXIT_FAILURE, 0, "cannot create ELF descriptor: %s",
 	   elf_errmsg (0));
 
-  /* Now proces all the sections mentioned in the rest of the command line.  */
+  /* Now process all the sections mentioned in the rest of the command line.  */
   for (cnt = 2; cnt < argc; ++cnt)
     if (handle_section (elf, elf_getscn (elf, atoi (argv[cnt]))) != 0)
       /* When we encounter an error stop immediately.  */
@@ -116,7 +116,7 @@ handle_section (Elf *elf, Elf_Scn *scn)
   if (data == NULL)
     return 1;
 
-  /* Now proces the different section types accordingly.  */
+  /* Now process the different section types accordingly.  */
   switch (shdr->sh_type)
     {
     case SHT_SYMTAB:
diff --git a/tests/varlocs.c b/tests/varlocs.c
index 40505196..152c6555 100644
--- a/tests/varlocs.c
+++ b/tests/varlocs.c
@@ -1011,7 +1011,7 @@ handle_die (Dwarf_Die *die, int depth, bool outer_has_frame_base,
   arg.entrypc = die_entrypc;
 
   /* Whether this or the any outer DIE has a frame base. Used as
-     sanity check when printing experssions that use DW_OP_fbreg.  */
+     sanity check when printing expressions that use DW_OP_fbreg.  */
   bool die_has_frame_base = dwarf_hasattr (die, DW_AT_frame_base);
   die_has_frame_base |= outer_has_frame_base;
   has_frame_base = die_has_frame_base;
-- 
ldv

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 12/12] Fix spelling typos in NEWS, NOTES, TODO, and in comments of configure.ac
  2020-12-12 16:49 [PATCH 00/12] Fix spelling typos in comments, tests, and text files Dmitry V. Levin
                   ` (10 preceding siblings ...)
  2020-12-12 16:52 ` [PATCH 11/12] tests: fix spelling typos in error diagnostics and comments Dmitry V. Levin
@ 2020-12-12 16:52 ` Dmitry V. Levin
  2020-12-12 17:17 ` [PATCH 00/12] Fix spelling typos in comments, tests, and text files Mark Wielaard
  12 siblings, 0 replies; 14+ messages in thread
From: Dmitry V. Levin @ 2020-12-12 16:52 UTC (permalink / raw)
  To: elfutils-devel

accidently -> accidentally
approriate -> appropriate
depencies -> dependencies
endianess -> endianness
funtions -> functions
indeces -> indices
indentified -> identified
ist -> is
mutliple -> multiple
nessesary -> necessary
optimze -> optimize
severly -> severely
suport -> support
tranformation -> transformation

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 ChangeLog        |  7 +++++++
 NEWS             | 18 +++++++++---------
 NOTES            |  4 ++--
 TODO             |  2 +-
 configure.ac     |  6 +++---
 libebl/ChangeLog |  2 +-
 6 files changed, 23 insertions(+), 16 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 92efa22f..2b2f7437 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-12-12  Dmitry V. Levin  <ldv@altlinux.org>
+
+	* configure.ac: Fix spelling typos in comments.
+	* NEWS: Fix spelling typos.
+	* NOTES: Likewise.
+	* TODO: Likewise.
+
 2020-12-11  Dmitry V. Levin  <ldv@altlinux.org>
 
 	* configure.ac (AM_CONDITIONAL): Remove HAVE_LIBASM and STANDALONE.
diff --git a/NEWS b/NEWS
index 4e94f1c1..caf20dd4 100644
--- a/NEWS
+++ b/NEWS
@@ -128,7 +128,7 @@ Fixes CVE-2019-7146, CVE-2019-7148, CVE-2019-7149, CVE-2019-7150,
 
 Version 0.175
 
-readelf: Handle mutliple .debug_macro sections.
+readelf: Handle multiple .debug_macro sections.
          Recognize and parse GNU Property notes, NT_VERSION notes
          and GNU Build Attribute ELF Notes.
 
@@ -629,7 +629,7 @@ Version 0.140:
 
 libelf: Fix regression in creation of section header
 
-libdwfl: Less strict behavior if DWARF reader ist just used to display data
+libdwfl: Less strict behavior if DWARF reader is just used to display data
 
 Version 0.139:
 
@@ -939,7 +939,7 @@ strip: support Linux kernel modules
 Version 0.106:
 
 libdw: Updated dwarf.h from DWARF3 spec
-libdw: add new funtions dwarf_func_entrypc, dwarf_func_file, dwarf_func_line,
+libdw: add new functions dwarf_func_entrypc, dwarf_func_file, dwarf_func_line,
 dwarf_func_col, dwarf_getsrc_file
 
 Version 0.105:
@@ -1049,7 +1049,7 @@ libelf: change to GPL from OSL1 for now.
 Version 0.90:
 
 libebl: Recognize a few more section types and dynamic tags and return
-approriate strings.
+appropriate strings.
 
 Version 0.89:
 
@@ -1151,11 +1151,11 @@ Version 0.73:
 
 Version 0.72:
 
-libelf: and yet more fun with endian tranformation at output time.
+libelf: and yet more fun with endian transformation at output time.
 
 Version 0.71:
 
-libelf: more fun with endian tranformation at output time.  Add test for it.
+libelf: more fun with endian transformation at output time.  Add test for it.
 
 Version 0.70:
 
@@ -1166,7 +1166,7 @@ libelf: add unlikely in some more places.
 
 Version 0.69:
 
-libelf: fix output routines to handle case where section indeces and
+libelf: fix output routines to handle case where section indices and
 ordre in the output file don't match correctly.  Patch by Jakub.
 
 elflint: fix test of note section content for 64-bit platforms and files
@@ -1341,7 +1341,7 @@ General: fix a few problem gcc 3.1 had with the code.
 
 libelf: implement {gelf,elf32,elf64}_checksum
 
-libelf: optimze DSO: fewer relocations, fewer PLTs
+libelf: optimize DSO: fewer relocations, fewer PLTs
 
 add msg_tst test
 
@@ -1586,7 +1586,7 @@ Version 0.16:
 
 more work on assigning input sections to output sections.
 
-Add gelf_xlatetof and gelf_xlatetom which were accidently left out.
+Add gelf_xlatetof and gelf_xlatetom which were accidentally left out.
 
 Fix memory handling of section headers.
 
diff --git a/NOTES b/NOTES
index 2a5c23bf..deae6435 100644
--- a/NOTES
+++ b/NOTES
@@ -55,7 +55,7 @@ Some notes:
 
 
 - the old linker supported extern "C++", extern "java" in version scripts.
-  I believe this implementation is severly broken and needs a redesign
+  I believe this implementation is severely broken and needs a redesign
   (how do wildcards work with these languages*?).  Therefore it is left
   out for now.
 
@@ -91,5 +91,5 @@ Some notes:
   Sections created in output files follow the naming of special section
   from the gABI.
 
-  In no place is a section solely indentified by its name.  Internal
+  In no place is a section solely identified by its name.  Internal
   references always use the section index.
diff --git a/TODO b/TODO
index ad10a5ee..5ed5e215 100644
--- a/TODO
+++ b/TODO
@@ -135,7 +135,7 @@ Time-stamp: <2009-02-05 22:08:01 drepper>
 
    check whether any relocation is for a merge-able section
 
-   check TLS relocation depencies
+   check TLS relocation dependencies
 
    Check content of .eh_frame_hdr, .eh_frame, .gcc_except_table
 
diff --git a/configure.ac b/configure.ac
index ed11d249..9e29f169 100644
--- a/configure.ac
+++ b/configure.ac
@@ -240,7 +240,7 @@ LDFLAGS="$save_LDFLAGS"])
 AS_IF([test "x$ac_cv_tls" != xyes],
       AC_MSG_ERROR([__thread support required]))
 
-dnl Before 4.9 gcc doesn't ship stdatomic.h, but the nessesary atomics are
+dnl Before 4.9 gcc doesn't ship stdatomic.h, but the necessary atomics are
 dnl available by (at least) 4.7. So if the system doesn't have a stdatomic.h we
 dnl fall back on one copied from FreeBSD that handles the difference.
 AC_CACHE_CHECK([whether gcc provides stdatomic.h], ac_cv_has_stdatomic,
@@ -298,7 +298,7 @@ case $use_debugpred in
 esac
 AC_SUBST([DEBUGPRED], $use_debugpred_val)
 
-dnl Enable gprof suport.
+dnl Enable gprof support.
 AC_ARG_ENABLE([gprof],
 AS_HELP_STRING([--enable-gprof],[build binaries with gprof support]), [use_gprof=$enableval], [use_gprof=no])
 if test "$use_gprof" = yes; then
@@ -307,7 +307,7 @@ if test "$use_gprof" = yes; then
 fi
 AM_CONDITIONAL(GPROF, test "$use_gprof" = yes)
 
-# Enable gcov suport.
+# Enable gcov support.
 AC_ARG_ENABLE([gcov],
 AS_HELP_STRING([--enable-gcov],[build binaries with gcov support]), [use_gcov=$enableval], [use_gcov=no])
 if test "$use_gcov" = yes; then
diff --git a/libebl/ChangeLog b/libebl/ChangeLog
index 863e4d55..04e9cd49 100644
--- a/libebl/ChangeLog
+++ b/libebl/ChangeLog
@@ -1096,7 +1096,7 @@
 2005-05-11  Ulrich Drepper  <drepper@redhat.com>
 
 	* eblcorenote.c: Handle new AT_* values and files with different
-	endianess.
+	endianness.
 	* Makefile.am (x86_64_SRCS): Add x86_64_corenote.c.
 	* x86-64_corenote.c: New file.
 	* x86_64_init.c: Hook in x86_64_corenote.
-- 
ldv

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 00/12] Fix spelling typos in comments, tests, and text files
  2020-12-12 16:49 [PATCH 00/12] Fix spelling typos in comments, tests, and text files Dmitry V. Levin
                   ` (11 preceding siblings ...)
  2020-12-12 16:52 ` [PATCH 12/12] Fix spelling typos in NEWS, NOTES, TODO, and in comments of configure.ac Dmitry V. Levin
@ 2020-12-12 17:17 ` Mark Wielaard
  12 siblings, 0 replies; 14+ messages in thread
From: Mark Wielaard @ 2020-12-12 17:17 UTC (permalink / raw)
  To: Dmitry V. Levin, elfutils-devel

Hi Dmitry,

On Sat, 2020-12-12 at 19:49 +0300, Dmitry V. Levin wrote:
> This is the least significant part of all spelling fixes, most users
> won't notice any difference at all, but it still makes sense to use
> correct spelling.
> 
> Dmitry V. Levin (12):
>   debuginfod: fix spelling typos in error diagnostics and comments
>   backends: fix spelling typos in comments
>   config: fix spelling typos in comments and %changelog
>   libasm: fix spelling typos in comments
>   libcpu: fix spelling typos in comments
>   libdw: fix spelling typos in comments and ChangeLog
>   libdwelf: fix spelling typos in comments
>   libdwfl: fix spelling typos in comments and ChangeLog
>   libelf: fix spelling typos in comments
>   src: fix spelling typos in comments and ChangeLog
>   tests: fix spelling typos in error diagnostics and comments
>   Fix spelling typos in NEWS, NOTES, TODO, and in comments of
>     configure.ac

Wow thanks. All changes look correct. I wouldn't have bothered with the
ChangeLog entry updates. But given you already did the work lets just
include them. All 12 patches pushed.

I saw you also fixed the spelling issues in elf.h. I'll sync it from
glibc again and add support for SHF_GNU_RETAIN.

Cheers,

Mark

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-12-12 17:17 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-12 16:49 [PATCH 00/12] Fix spelling typos in comments, tests, and text files Dmitry V. Levin
2020-12-12 16:50 ` [PATCH 01/12] debuginfod: fix spelling typos in error diagnostics and comments Dmitry V. Levin
2020-12-12 16:50 ` [PATCH 02/12] backends: fix spelling typos in comments Dmitry V. Levin
2020-12-12 16:50 ` [PATCH 03/12] config: fix spelling typos in comments and %changelog Dmitry V. Levin
2020-12-12 16:50 ` [PATCH 04/12] libasm: fix spelling typos in comments Dmitry V. Levin
2020-12-12 16:50 ` [PATCH 05/12] libcpu: " Dmitry V. Levin
2020-12-12 16:51 ` [PATCH 06/12] libdw: fix spelling typos in comments and ChangeLog Dmitry V. Levin
2020-12-12 16:51 ` [PATCH 07/12] libdwelf: fix spelling typos in comments Dmitry V. Levin
2020-12-12 16:51 ` [PATCH 08/12] libdwfl: fix spelling typos in comments and ChangeLog Dmitry V. Levin
2020-12-12 16:52 ` [PATCH 09/12] libelf: fix spelling typos in comments Dmitry V. Levin
2020-12-12 16:52 ` [PATCH 10/12] src: fix spelling typos in comments and ChangeLog Dmitry V. Levin
2020-12-12 16:52 ` [PATCH 11/12] tests: fix spelling typos in error diagnostics and comments Dmitry V. Levin
2020-12-12 16:52 ` [PATCH 12/12] Fix spelling typos in NEWS, NOTES, TODO, and in comments of configure.ac Dmitry V. Levin
2020-12-12 17:17 ` [PATCH 00/12] Fix spelling typos in comments, tests, and text files Mark Wielaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).