]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libelf: fix spelling typos in comments
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 12 Dec 2020 16:52:26 +0000 (19:52 +0300)
committerMark Wielaard <mark@klomp.org>
Sat, 12 Dec 2020 17:06:28 +0000 (18:06 +0100)
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
libelf/common.h
libelf/elf32_checksum.c
libelf/elf_begin.c
libelf/elf_compress.c
libelf/elf_compress_gnu.c
libelf/gelf.h
libelf/libelf.h
libelf/libelfP.h

index 38c0162af86da2f550325a78a7e17c3ceb8b0783..41727fbd3e380696eb0e66e67dd9638ad85ad2ae 100644 (file)
@@ -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.
index b0175f60d7c8ea2ccfd0994065aa87f644292ba4..e41c717d0442fcbd838bc4c3efd4c4b7d10fd8bd 100644 (file)
@@ -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                                                 \
index f9dfccb2c035033a20ec970c6edf48fc1e1d45bc..c5f27bbe2ef4ab03b53b4b785e3f872fa17ff736 100644 (file)
@@ -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
index 8107a103a25c1a702568e3e3e96ef3a783e7ca71..43828c9a3ecf69cec472c6b51966a27f9de2db88 100644 (file)
@@ -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)
 {
index 9d6f15c085411886076cecd930d940a5f9fc5ca1..df0144e88188b525c10131da1e0f55e96e1a2495 100644 (file)
@@ -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)
index 7aed4640375671a7d55c94e9dab0f0dc5bf8b7bb..3d2977e7d3b01ff6355844c3136c0c9b1c7473ab 100644 (file)
@@ -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).  */
index 061988037784d01265ff4a2eb67efb1f31a13f6e..7a3c87aaed4e6a44f53f1aef66672e36ccad2761 100644 (file)
@@ -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.  */
index 1ff11c95055e81b90b7b9c060243060cee4072e7..a139e733ae7e97d158433b8d81f32901663772d5 100644 (file)
@@ -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).
index 6a3243de9c73e120c023fae94e4be5ada008914f..b8ffa18d4a7c97834925b95e4eb740d7ea122207 100644 (file)
@@ -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
 {