From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from vmicros1.altlinux.org (vmicros1.altlinux.org [194.107.17.57]) by sourceware.org (Postfix) with ESMTP id 2834A38930C1 for ; Sat, 12 Dec 2020 16:52:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2834A38930C1 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=altlinux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=ldv@altlinux.org Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 7EBC472C8B5 for ; Sat, 12 Dec 2020 19:52:37 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 6EA887CC8A3; Sat, 12 Dec 2020 19:52:37 +0300 (MSK) Date: Sat, 12 Dec 2020 19:52:37 +0300 From: "Dmitry V. Levin" To: elfutils-devel@sourceware.org Subject: [PATCH 10/12] src: fix spelling typos in comments and ChangeLog Message-ID: <20201212165237.GJ503@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201212164901.GA474@altlinux.org> X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Dec 2020 16:52:40 -0000 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 --- 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 + * 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 @@ -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