aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2020-12-12 19:52:37 +0300
committerMark Wielaard <mark@klomp.org>2020-12-12 18:06:28 +0100
commit107b351d49009bd446a1e1898bd01b43cf557304 (patch)
treef1757a26a363446326350df0aa85d426883b7b0c /src
parentd178e3765d52ad7bb7869693d15c3dabb7a81689 (diff)
downloadelfutils-107b351d49009bd446a1e1898bd01b43cf557304.tar.gz
src: fix spelling typos in comments and ChangeLog
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>
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog14
-rw-r--r--src/ar.c4
-rw-r--r--src/elfclassify.c6
-rw-r--r--src/elfcompress.c2
-rw-r--r--src/elflint.c6
-rw-r--r--src/readelf.c6
-rw-r--r--src/size.c2
-rw-r--r--src/strings.c2
-rw-r--r--src/strip.c2
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;