aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorYuri Chornovian <yurchor@ukr.net>2017-07-18 16:58:14 +0100
committerNick Clifton <nickc@redhat.com>2017-07-18 16:58:14 +0100
commitde194d8575765da6c7905d09b8675c59fad035e9 (patch)
treeb5d104395b4fb836d6b3a7687faa48d6a2544210 /bfd
parentc5ed057625f886b14d9def3fa7488fd8bbbf7dd3 (diff)
downloadfsf-binutils-gdb-de194d8575765da6c7905d09b8675c59fad035e9.zip
fsf-binutils-gdb-de194d8575765da6c7905d09b8675c59fad035e9.tar.gz
fsf-binutils-gdb-de194d8575765da6c7905d09b8675c59fad035e9.tar.bz2
Fix spelling typos.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog25
-rw-r--r--bfd/coff-sh.c2
-rw-r--r--bfd/compress.c2
-rw-r--r--bfd/cpu-pdp11.c2
-rw-r--r--bfd/ecofflink.c2
-rw-r--r--bfd/elf-m10300.c2
-rw-r--r--bfd/elf.c2
-rw-r--r--bfd/elf32-arm.c2
-rw-r--r--bfd/elf32-m68k.c2
-rw-r--r--bfd/elf32-nds32.c6
-rw-r--r--bfd/elf32-ppc.c2
-rw-r--r--bfd/elf32-sh.c2
-rw-r--r--bfd/elf32-v850.c2
-rw-r--r--bfd/elf64-ppc.c4
-rw-r--r--bfd/elf64-x86-64.c4
-rw-r--r--bfd/elflink.c2
-rw-r--r--bfd/elfnn-aarch64.c2
-rw-r--r--bfd/elfxx-mips.c6
-rw-r--r--bfd/som.c2
-rw-r--r--bfd/sunos.c2
-rw-r--r--bfd/vms-alpha.c2
-rw-r--r--bfd/xcofflink.c2
22 files changed, 52 insertions, 27 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f9eb98f..bdffccf 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,30 @@
2017-07-18 Nick Clifton <nickc@redhat.com>
+ PR 21775
+ * coff-sh.c: Fix spelling typos.
+ * compress.c: Likewise.
+ * cpu-pdp11.c: Likewise.
+ * ecofflink.c: Likewise.
+ * elf-m10300.c: Likewise.
+ * elf.c: Likewise.
+ * elf32-arm.c: Likewise.
+ * elf32-m68k.c: Likewise.
+ * elf32-nds32.c: Likewise.
+ * elf32-ppc.c: Likewise.
+ * elf32-sh.c: Likewise.
+ * elf32-v850.c: Likewise.
+ * elf64-ppc.c: Likewise.
+ * elf64-x86-64.c: Likewise.
+ * elflink.c: Likewise.
+ * elfnn-aarch64.c: Likewise.
+ * elfxx-mips.c: Likewise.
+ * som.c: Likewise.
+ * sunos.c: Likewise.
+ * vms-alpha.c: Likewise.
+ * xcofflink.c: Likewise.
+
+2017-07-18 Nick Clifton <nickc@redhat.com>
+
PR binutils/21781
* coffcode.h (handle_COMDAT): Replace abort with an error message
and return.
diff --git a/bfd/coff-sh.c b/bfd/coff-sh.c
index 1c483cb..8170152 100644
--- a/bfd/coff-sh.c
+++ b/bfd/coff-sh.c
@@ -1083,7 +1083,7 @@ sh_relax_delete_bytes (bfd *abfd,
contents = coff_section_data (abfd, sec)->contents;
- /* The deletion must stop at the next ALIGN reloc for an aligment
+ /* The deletion must stop at the next ALIGN reloc for an alignment
power larger than the number of bytes we are deleting. */
irelalign = NULL;
diff --git a/bfd/compress.c b/bfd/compress.c
index a9dcbc0..d06f2fe 100644
--- a/bfd/compress.c
+++ b/bfd/compress.c
@@ -106,7 +106,7 @@ bfd_compress_section_contents (bfd *abfd, sec_ptr sec,
if (orig_compression_header_size == 0)
{
/* Convert it from .zdebug* section. Get the uncompressed
- size first. We need to substract the 12-byte overhead in
+ size first. We need to subtract the 12-byte overhead in
.zdebug* section. Set orig_compression_header_size to
the 12-bye overhead. */
orig_compression_header_size = 12;
diff --git a/bfd/cpu-pdp11.c b/bfd/cpu-pdp11.c
index 87c6aa9..25e20bb 100644
--- a/bfd/cpu-pdp11.c
+++ b/bfd/cpu-pdp11.c
@@ -31,7 +31,7 @@ const bfd_arch_info_type bfd_pdp11_arch =
0, /* only 1 machine */
"pdp11",
"pdp11",
- 1, /* aligment = 16 bit */
+ 1, /* alignment = 16 bit */
TRUE, /* the one and only */
bfd_default_compatible,
bfd_default_scan,
diff --git a/bfd/ecofflink.c b/bfd/ecofflink.c
index c3c2e94..e1f1804 100644
--- a/bfd/ecofflink.c
+++ b/bfd/ecofflink.c
@@ -898,7 +898,7 @@ bfd_ecoff_debug_accumulate (void * handle,
if (! bfd_link_relocatable (info))
{
- /* When are are hashing strings, we lie about the number of
+ /* When we are hashing strings, we lie about the number of
strings attached to each FDR. We need to set cbSs
because some versions of dbx apparently use it to decide
how much of the string table to read in. */
diff --git a/bfd/elf-m10300.c b/bfd/elf-m10300.c
index 97301c8..9214a57 100644
--- a/bfd/elf-m10300.c
+++ b/bfd/elf-m10300.c
@@ -2416,7 +2416,7 @@ mn10300_elf_relax_delete_bytes (bfd *abfd,
if (ELF32_R_TYPE ((irelend - 1)->r_info) == (int) R_MN10300_ALIGN)
--irelend;
- /* The deletion must stop at the next ALIGN reloc for an aligment
+ /* The deletion must stop at the next ALIGN reloc for an alignment
power larger than, or not a multiple of, the number of bytes we
are deleting. */
for (; irel < irelend; irel++)
diff --git a/bfd/elf.c b/bfd/elf.c
index a937930..b99e297 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -5115,7 +5115,7 @@ elf_sort_sections (const void *arg1, const void *arg2)
else
adjustment = vma_offset - off_offset;
- which can can be collapsed into the expression below. */
+ which can be collapsed into the expression below. */
static file_ptr
vma_page_aligned_bias (bfd_vma vma, ufile_ptr off, bfd_vma maxpagesize)
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 4277168..e8c346d 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -14037,7 +14037,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info)
if (in_attr[Tag_MPextension_use].i != in_attr[i].i)
{
_bfd_error_handler
- (_("%B has has both the current and legacy "
+ (_("%B has both the current and legacy "
"Tag_MPextension_use attributes"),
ibfd);
result = FALSE;
diff --git a/bfd/elf32-m68k.c b/bfd/elf32-m68k.c
index 5b64589..ab122fe 100644
--- a/bfd/elf32-m68k.c
+++ b/bfd/elf32-m68k.c
@@ -703,7 +703,7 @@ struct elf_m68k_got_entry
struct
{
/* Offset from the start of .got section. To calculate offset relative
- to GOT pointer one should substract got->offset from this value. */
+ to GOT pointer one should subtract got->offset from this value. */
bfd_vma offset;
/* Pointer to the next GOT entry for this global symbol.
diff --git a/bfd/elf32-nds32.c b/bfd/elf32-nds32.c
index d6b58aa..b5f59e7 100644
--- a/bfd/elf32-nds32.c
+++ b/bfd/elf32-nds32.c
@@ -11509,12 +11509,12 @@ nds32_relax_adjust_label (bfd *abfd, asection *sec,
of instruction a time.
It recognizes three types of relocations.
- 1. R_NDS32_LABEL - a aligment.
+ 1. R_NDS32_LABEL - a alignment.
2. R_NDS32_INSN16 - relax a 32-bit instruction to 16-bit.
3. is_16bit_NOP () - remove a 16-bit instruction. */
- /* TODO: It seems currently implementation only support 4-byte aligment.
- We should handle any-aligment. */
+ /* TODO: It seems currently implementation only support 4-byte alignment.
+ We should handle any-alignment. */
Elf_Internal_Rela *insn_rel = NULL, *label_rel = NULL, *irel;
Elf_Internal_Rela *tmp_rel, *tmp2_rel = NULL;
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 6d8b502..f32ba9b 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -134,7 +134,7 @@ static const bfd_vma ppc_elf_vxworks_pic_plt0_entry
#define VXWORKS_PLT_NON_JMP_SLOT_RELOCS 3
/* The number of relocations in the PLTResolve slot. */
#define VXWORKS_PLTRESOLVE_RELOCS 2
-/* The number of relocations in the PLTResolve slot when when creating
+/* The number of relocations in the PLTResolve slot when creating
a shared library. */
#define VXWORKS_PLTRESOLVE_RELOCS_SHLIB 0
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c
index dfc16a2..8f91579 100644
--- a/bfd/elf32-sh.c
+++ b/bfd/elf32-sh.c
@@ -913,7 +913,7 @@ sh_elf_relax_delete_bytes (bfd *abfd, asection *sec, bfd_vma addr,
contents = elf_section_data (sec)->this_hdr.contents;
- /* The deletion must stop at the next ALIGN reloc for an aligment
+ /* The deletion must stop at the next ALIGN reloc for an alignment
power larger than the number of bytes we are deleting. */
irelalign = NULL;
diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c
index a9c56cb..f33a520 100644
--- a/bfd/elf32-v850.c
+++ b/bfd/elf32-v850.c
@@ -2525,7 +2525,7 @@ v850_elf_merge_notes (bfd * ibfd, bfd *obfd)
{
_bfd_error_handler
/* xgettext:c-format */
- (_("error: %B needs 8-byte aligment but %B is set for 4-byte alignment"),
+ (_("error: %B needs 8-byte alignment but %B is set for 4-byte alignment"),
ibfd, obfd);
result = FALSE;
}
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 70ad6c5..9903373 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -8904,7 +8904,7 @@ ppc64_elf_tls_optimize (struct bfd_link_info *info)
the values of any global symbols in a toc section that has been
edited. Globals in toc sections should be a rarity, so this function
sets a flag if any are found in toc sections other than the one just
- edited, so that futher hash table traversals can be avoided. */
+ edited, so that further hash table traversals can be avoided. */
struct adjust_toc_info
{
@@ -9400,7 +9400,7 @@ ppc64_elf_edit_toc (struct bfd_link_info *info)
/* Merge the used and skip arrays. Assume that TOC
doublewords not appearing as either used or unused belong
- to to an entry more than one doubleword in size. */
+ to an entry more than one doubleword in size. */
for (drop = skip, keep = used, last = 0, some_unused = 0;
drop < skip + (toc->size + 7) / 8;
++drop, ++keep)
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 3658df4..a13af12 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -611,7 +611,7 @@ static const bfd_byte elf_x86_64_lazy_ibt_plt_entry[LAZY_PLT_ENTRY_SIZE] =
};
/* The first entry in the x32 IBT-enabled lazy procedure linkage table
- is the the same as the normal lazy PLT. Subsequent entries for an
+ is the same as the normal lazy PLT. Subsequent entries for an
x32 IBT-enabled lazy procedure linkage table look like this. */
static const bfd_byte elf_x32_lazy_ibt_plt_entry[LAZY_PLT_ENTRY_SIZE] =
@@ -4669,7 +4669,7 @@ do_ifunc_pointer:
case R_X86_64_GOTPCREL64:
/* Use global offset table entry as symbol value. */
case R_X86_64_GOTPLT64:
- /* This is obsolete and treated the the same as GOT64. */
+ /* This is obsolete and treated the same as GOT64. */
base_got = htab->elf.sgot;
if (htab->elf.sgot == NULL)
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 6010b61..eff53ac 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -2935,7 +2935,7 @@ _bfd_elf_adjust_dynamic_copy (struct bfd_link_info *info,
bfd_vma mask;
asection *sec = h->root.u.def.section;
- /* The section aligment of definition is the maximum alignment
+ /* The section alignment of the definition is the maximum alignment
requirement of symbols defined in the section. Since we don't
know the symbol alignment requirement, we start with the
maximum alignment and check low bits of the symbol address
diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c
index b28e8d8..de7b627 100644
--- a/bfd/elfnn-aarch64.c
+++ b/bfd/elfnn-aarch64.c
@@ -3281,7 +3281,7 @@ aarch64_mem_op_p (uint32_t insn, unsigned int *rt, unsigned int *rt2,
uint32_t v = 0;
uint32_t opc_v = 0;
- /* Bail out quickly if INSN doesn't fall into the the load-store
+ /* Bail out quickly if INSN doesn't fall into the load-store
encoding space. */
if (!AARCH64_LDST (insn))
return FALSE;
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index f270cdb..fddf68c 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -5456,7 +5456,7 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd,
{
/* If this is a dynamic link, we should have created a
_DYNAMIC_LINK symbol or _DYNAMIC_LINKING(for normal mips) symbol
- in in _bfd_mips_elf_create_dynamic_sections.
+ in _bfd_mips_elf_create_dynamic_sections.
Otherwise, we should define the symbol with a value of 0.
FIXME: It should probably get into the symbol table
somehow as well. */
@@ -6955,7 +6955,7 @@ _bfd_mips_elf_symbol_processing (bfd *abfd, asymbol *asym)
{
asym->section = section;
/* MIPS_TEXT is a bit special, the address is not an offset
- to the base of the .text section. So substract the section
+ to the base of the .text section. So subtract the section
base address to make it an offset. */
asym->value -= section->vma;
}
@@ -6970,7 +6970,7 @@ _bfd_mips_elf_symbol_processing (bfd *abfd, asymbol *asym)
{
asym->section = section;
/* MIPS_DATA is a bit special, the address is not an offset
- to the base of the .data section. So substract the section
+ to the base of the .data section. So subtract the section
base address to make it an offset. */
asym->value -= section->vma;
}
diff --git a/bfd/som.c b/bfd/som.c
index 98c4124..49f7860 100644
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -5012,7 +5012,7 @@ som_set_reloc_info (unsigned char *fixup,
push (v);
}
else
- /* An operator. Pop two two values from the stack and
+ /* An operator. Pop two values from the stack and
use them as operands to the given operation. Push
the result of the operation back on the stack. */
switch (c)
diff --git a/bfd/sunos.c b/bfd/sunos.c
index 10f4354..6cfc26e 100644
--- a/bfd/sunos.c
+++ b/bfd/sunos.c
@@ -2314,7 +2314,7 @@ sunos_write_dynamic_symbol (bfd *output_bfd,
}
/* This is called for each reloc against an external symbol. If this
- is a reloc which are are going to copy as a dynamic reloc, then
+ is a reloc which are going to copy as a dynamic reloc, then
copy it over, and tell the caller to not bother processing this
reloc. */
diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c
index 91e8b6e..991a1be 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -6220,7 +6220,7 @@ evax_bfd_print_etir (FILE *file, const char *name,
fprintf (file, _("OPR_ADD (add)\n"));
break;
case ETIR__C_OPR_SUB:
- fprintf (file, _("OPR_SUB (substract)\n"));
+ fprintf (file, _("OPR_SUB (subtract)\n"));
break;
case ETIR__C_OPR_MUL:
fprintf (file, _("OPR_MUL (multiply)\n"));
diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c
index d80e98d..c9421ee 100644
--- a/bfd/xcofflink.c
+++ b/bfd/xcofflink.c
@@ -5310,7 +5310,7 @@ xcoff_write_global_symbol (struct bfd_hash_entry *bh, void * inf)
tocoff += h->descriptor->u.toc_offset;
/* The first instruction in the glink code needs to be
- cooked to to hold the correct offset in the toc. The
+ cooked to hold the correct offset in the toc. The
rest are just output raw. */
bfd_put_32 (output_bfd,
bfd_xcoff_glink_code(output_bfd, 0) | (tocoff & 0xffff), p);