]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
src: fix spelling typos in comments and ChangeLog
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 12 Dec 2020 16:52:37 +0000 (19:52 +0300)
committerMark Wielaard <mark@klomp.org>
Sat, 12 Dec 2020 17:06:28 +0000 (18:06 +0100)
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
src/ar.c
src/elfclassify.c
src/elfcompress.c
src/elflint.c
src/readelf.c
src/size.c
src/strings.c
src/strip.c

index 0349f5c7d99852adb3e800421ead5d6e44c88e0f..f5a02a360fa485a0aa45cb0e9d42c3e4a1bfc7ec 100644 (file)
@@ -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.
        (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>
 
        * 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.
index 7d33d814d0f1ecd4a5a0aa7e0e06a70848b814c2..1a8e0d6e65963dee230b59f771c7ba1c02e35ca9 100644 (file)
--- 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).  */
index 624bb86164a1ae864f91ddbf33c57be016a44dd2..ae626bb1a2855ddfdc76a146b8f81a317322d950 100644 (file)
@@ -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)
 {
index 6ba6af410fe0425b2e812969bed3916c5c8dc02f..1b5b1e36958b35ce111d3d59eeb5a609c3dd3f91 100644 (file)
@@ -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)
     {
index ef3e373261e1e7fb94564fa33bb27d915729357e..6e219ced4ae87fdebb1be32ea08ff49341f042dc 100644 (file)
@@ -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;
index 183e69724e6f119193347b73ea74fd3a7753c430..f51b41d7f58929b931eec2eb12a7f1518d6e779b 100644 (file)
@@ -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,
index e49b64b86a12bea3247783546cc10d29b9d3a262..9eeb83c1d9ae39d1ca8a9bc1267d7251c01b3155 100644 (file)
@@ -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;
 
index 8e259211cc6bc67904acb982abce5451a8bcf2bb..f3d115c6f1ae375f9126354ae53c8620cd0f7827 100644 (file)
@@ -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)
index 9dbdf5d9a7510741cec868258b5806e0bf4b35f8..d211cde6e190574db9235fc09ef00dd23b3d310f 100644 (file)
@@ -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;