+2020-12-12 Dmitry V. Levin <ldv@altlinux.org>
+
+ * common.h: Fix spelling typo in comment.
+ * gelf.h: Likewise.
+ * libelf.h: Likewise.
+ * libelfP.h: Likewise.
+ * elf32_checksum.c (elfw2): Likewise.
+ * elf_begin.c (dup_elf, write_file): Likewise.
+ * elf_compress.c (__libelf_compress): Likewise.
+ * elf_compress_gnu.c (elf_compress_gnu): Likewise.
+
2020-12-11 Dmitry V. Levin <ldv@altlinux.org>
* Makefile.am (GCC_INCLUDE): Remove.
}
-/* Macro to convert endianess in place. It determines the function it
+/* Macro to convert endianness in place. It determines the function it
has to use itself. */
#define CONVERT(Var) \
(Var) = (sizeof (Var) == 1 \
/* To compute the checksum we need to get to the data. For
repeatable results we must use the external format. The data
- we get with 'elf'getdata' might be changed for endianess
+ we get with 'elf'getdata' might be changed for endianness
reasons. Therefore we use 'elf_rawdata' if possible. But
this function can fail if the data was constructed by the
program. In this case we have to use 'elf_getdata' and
}
/* This is an archive. We must create a descriptor for the archive
- member the internal pointer of the archive file desriptor is
+ member the internal pointer of the archive file descriptor is
pointing to. First read the header of the next member if this
has not happened already. */
if (ref->state.ar.elf_ar_hdr.ar_name == NULL
}
-/* Return desriptor for empty file ready for writing. */
+/* Return descriptor for empty file ready for writing. */
static struct Elf *
write_file (int fd, Elf_Cmd cmd)
{
int flush = Z_NO_FLUSH;
do
{
- /* Convert to raw if different endianess. */
+ /* Convert to raw if different endianness. */
cdata = *data;
bool convert = ei_data != MY_ELFDATA && data->d_size > 0;
if (convert)
}
else if (inflate == 0)
{
- /* In theory the user could have constucted a compressed section
+ /* In theory the user could have constructed a compressed section
by hand. And in practice they do. For example when copying
a section from one file to another using elf_newdata. So we
have to use elf_getdata (not elf_rawdata). */
/* Version definition sections. */
typedef Elf64_Verdef GElf_Verdef;
-/* Auxialiary version information. */
+/* Auxiliary version information. */
typedef Elf64_Verdaux GElf_Verdaux;
/* Version dependency section. */
It is always an error to call these functions on SHT_NOBITS
sections or if the section has the SHF_ALLOC flag set.
elf_compress_gnu will not check whether the section name starts
- with ".debug" or .zdebug". It is the responsibilty of the caller
+ with ".debug" or .zdebug". It is the responsibility of the caller
to make sure the deprecated GNU compression method is only called
on correctly named sections (and to change the name of the section
when using elf_compress_gnu).
};
-/* The visible `Elf_Data' type is not sufficent for some operations due
+/* The visible `Elf_Data' type is not sufficient for some operations due
to a misdesigned interface. Extend it for internal purposes. */
typedef struct
{