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.
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];
/* 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). */
/* 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)
{
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)
{
}
/* 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)
{
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)
{
/* 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. */
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)
{
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;
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)
{
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)
{
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,
/* 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;
/* 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)
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;