From: "Dmitry V. Levin" <ldv@altlinux.org>
To: elfutils-devel@sourceware.org
Subject: [PATCH 10/12] src: fix spelling typos in comments and ChangeLog
Date: Sat, 12 Dec 2020 19:52:37 +0300 [thread overview]
Message-ID: <20201212165237.GJ503@altlinux.org> (raw)
In-Reply-To: <20201212164901.GA474@altlinux.org>
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
next prev parent reply other threads:[~2020-12-12 16:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Dmitry V. Levin [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201212165237.GJ503@altlinux.org \
--to=ldv@altlinux.org \
--cc=elfutils-devel@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).